[Android] Customize the resource loading of MediaPlayer

Add XWalkMediaPlayerResourceLoadingFilter which inherits
MediaPlayerBridge.ResourceLoadingFilter. Then we can customize
the MediaPlayer in xwalk. Now we have two customized items:
    Support app scheme in the resource loading of MediaPlayer.
    Support file://android_asset/ url in MediaPlayer.

BUG=https://crosswalk-project.org/jira/browse/XWALK-880
[Android] Launch Screen 1st-step implementation

This is the first step implementation of Launch Screen feature.

The workflow in general as below:
Build script:
1. Check whether 'launch-screen' provided in manifest.json.
2. Check 'launch-screen'->'default'->'image' field, and copy the image to 'res/drawable'
   Rename it as 'launchscreen.*'.
3. Set '@drawable/launchscreen' as window background, it will be displayed immediately
   after user tap the app icon.
Note: The drawable will be customized as the spec in the next implementation steps.

Runtime:
1. Check and get 'launch-screen'->'ready_when' field in manifest.json.
2. Display a dialog as launch screen, and set the background '@drawable/launchscreen'.
3. Hide the dialog depends on 'ready_when' condition:
   1. First rendered frame.
   2. First rendered frame & Page load finished
   3. First rendered frame & js:window.show()

TODO:
Test will be committed in another patch
Next step implementation will support the full spec.

Spec: https://docs.google.com/a/intel.com/document/d/17PuNuHRTQuREUpaCvj-eEx7uYi2avd-VW-oaMXMpvwo/edit?pli=1#
Design Doc: https://docs.google.com/a/intel.com/document/d/1YLajlZC7CkBOtEvzD6p6yeBr0HrPsaIGX8Eqhr3oTF4/edit#heading=h.mfsu3bk9566e
Bug: XWALK-637
[Android] Make the uid that can connect to the devtools server configurable

Currently, the devtools server allows only code running in the same process
to connect. This change allows specifying the process that can connect to
devtools server.

This code is being modified since the XDK architecture for remote debugging
has changed. Previously, App Analyzer had a websocket proxy that used to run
in the same process as xwalk. In the next version of XDK, the websocket proxy
is being moved to be part of another application (App Preview) and will run
in a process that is different from xwalk. With the addition of this API,
App Preview service will instruct App Analyzer to allow connections from
the service.

BUG=https://crosswalk-project.org/jira/browse/XWALK-964
[Tizen] Remove Tizen 2.x-specific patches and code paths in the spec.

Now that we have finally moved away from Tizen 2, we can at last simplify
our spec file a bit and remove some patches that are not needed when
building for Tizen 3.
Merge pull request #1575 from gramakri-intel/devtools_allow_uid

[Android] Make the uid that can connect to the devtools server configurable
Merge pull request #1586 from rakuco/remove-tizen2-paths-in-spec

[Tizen] Remove Tizen 2.x-specific patches and code paths in the spec.
Merge pull request #1498 from kurli/launchScreen

[Android] Launch Screen 1st-step implementation
[Extension] Add API for Check API Access Control

This API is for external extension developer. The API need to be called in the
implementation of each exported API in C or C++ code. For C extension
implantation, header file "public/XW_Extension_Permissions.h" should be
included. For each API that need access sensitive data, developer should call
CheckAPIAccessControl for API control. For C++ extension implantation, header
file "xwalk/common/xwalk_external_extension.h" should be included.

The basic flow of API access control is as below:
1.when render process execute a JS API which need access sensitive data
of device, render process send a message to extension process
2.in extension process API's implemetation, it should call
  checkAPIAccessControl, which will call PermissionsDelegate
  (which is in also extension process).
3. extension process send a message to browser process.
   XWalkExtensionProcessHost -> XWalkExtensionProcessHost::Delegate
   (which is XWalkExtensionService) -> XWalkExtensionService::Delegate
   (which is XWalkAppExtensionBridge) ->xwalk::application::
   ApplicationService::CheckAPIAccessControl().
Merge pull request #1539 from xingnan/mediaplayer

[Android] Customize the resource loading of MediaPlayer
[Android] Fix the issue of package name in packaging tool.

There is packaging name issue when packaging application for
more than one architecture, this fix is resolving this issue
by correcting the package name in packaging tool.
Update DEPS.xwalk to include new patch in Chromium

https://github.com/crosswalk-project/crosswalk/pull/1539
This PR depends on the patch in Chromium, with PR
https://github.com/crosswalk-project/chromium-crosswalk/pull/115

BUG=https://crosswalk-project.org/jira/browse/XWALK-880
Merge pull request #1590 from xingnan/deps

Update DEPS.xwalk to include new patch in Chromium
[Android] Fix the unit test fail issue caused by launch screen patch

1. Need to initialize options.launch_screen_img before using it.
2. Check fullscreen flag from theme.xml file.
Merge pull request #1595 from kurli/test-fail-fix

[Android] Fix the unit test fail issue caused by launch screen patch
Merge pull request #1591 from ShDavidliu/UpdatePackageName

[Android] Fix the issue of package name in packaging tool.
Bump crosswalk to Chromium 34.0.1809.2.

Finally move from Chromium 32 to Chromium 34. As usual with commits that
move us to a different milestone, it is a bit big, as we need to change
quite a few files to keep the build green.

For reference, this commit contains the following ones that used to be in
the next branch:

Author: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Date:   Tue Feb 18 15:47:21 2014 +0200

    DEPS.xwalk: Roll chromium-crosswalk (ee6af9f -> f25efe5)

    f25efe5 Merge pull request #122 from rakuco/no-alsa-backport
    694f554 [Temp] Backport Chromium r249361.

Author: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Date:   Tue Feb 18 15:34:19 2014 +0200

    [Tizen] Install icudtl.dat.

    Since Chromium r247045, Linux builds icu_use_data_file_flag set to 1, which
    means we now depend on that icudtl.dat to exist for Crosswalk to run.

Author: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Date:   Mon Feb 17 17:03:06 2014 +0200

    DEPS.xwalk: Track ozone-wayland's MilestoneValentine.

    This is oz-wl's new stable branch that is going to track Chromium M34.

Author: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Date:   Thu Feb 13 15:23:12 2014 +0200

    DEPS.xwalk: Roll chromium-crosswalk (3659705 -> ee6af9f).

    ee6af9f Merge pull request #119 from halton/vaapi-linux
    d660a3e Enabling Hardware Acceleration with Libva in linux-x86.

Author: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Date:   Tue Feb 11 16:53:29 2014 +0200

    DEPS.xwalk: Roll chromium-crosswalk (8539051 -> 3659705).

    3659705 Merge pull request #118 from crosswalk-project/views-init-order
    f66c197 [Views] Fix compiler initialization order errors.

Author: Sudarsana Nagineni <sudarsana.nagineni@intel.com>
Date:   Tue Feb 11 16:20:00 2014 +0200

    [Tizen] Build fix after rebase.

    Rebase audio-session-manager.patch to 34 to fix the build failures.

Author: Dongseong Hwang <dongseong.hwang@intel.com>
Date:   Wed Feb 5 17:55:38 2014 +0200

    Build fix Tizen Mobile.

    Clean up tiny remainders.

Author: Dongseong Hwang <dongseong.hwang@intel.com>
Date:   Wed Feb 5 17:25:42 2014 +0200

    Tizen build fix.

    Rebase crosswalk-2.31-enable-VAVDA-with-EGL.patch to M34 upstream.

    TBR=qing.zhang@intel.com

Author: Halton Huo <halton.huo@intel.com>
Date:   Mon Feb 10 16:48:25 2014 +0800

    Fix build error on non Android platform.

    xwalk_permission_client.h is only added for Android, so calling on
    XWalkPermissionClient should be protected with OS_ANDROID macro.

Author: Shiliu Wang <shiliu.wang@intel.com>
Date:   Mon Feb 10 12:52:40 2014 +0800

    [Android] Initialize Cookie manager with created Cookie Store

    The part of code is removed in previous commit.

Author: Shiliu Wang <shiliu.wang@intel.com>
Date:   Mon Feb 10 12:50:16 2014 +0800

    [Android] Fix incorrect initialize of WindowAndroid

    It's used before initialization in XWalkContent. And it
    needs ApplicationContext.

Author: Shiliu Wang <shiliu.wang@intel.com>
Date:   Sat Feb 8 16:51:46 2014 +0800

    [Android] Change CommandLine import from content to base

    The facility class for CommandLine has been moved from content
    to base after rebased to 34.

Author: Shiliu Wang <shiliu.wang@intel.com>
Date:   Sat Feb 8 16:50:49 2014 +0800

    [Android] Fix unused variable warning for cookie store

    It is treat as error after rebased to 34.

Author: Shiliu Wang <shiliu.wang@intel.com>
Date:   Sat Feb 8 16:48:57 2014 +0800

    [Android] Adjust generate file list for xwalk core library

    The list has been changed after rebased to 34.

Author: Alexander Shalamov <alexander.shalamov@intel.com>
Date:   Thu Feb 6 12:51:43 2014 +0200

    [Tizen] Fix for ime build break

    This patch fixes ime breaks that are caused by latest rebase.

Author: Dongseong Hwang <dongseong.hwang@intel.com>
Date:   Wed Feb 5 16:53:35 2014 +0200

    Build fix Tizen Mobile.

    - Make system indicator use changed content API.
    - Make installer use changed file_util API.

Author: Alexis Menard <alexis.menard@intel.com>
Date:   Tue Feb 4 14:18:01 2014 -0300

    Fix build on Windows.

    Fixes due to renaming/moving and added a new method overload for
    xwalk_views_delegate.

Author: Alexis Menard <alexis.menard@intel.com>
Date:   Tue Feb 4 11:14:14 2014 -0300

    Build fix Android.

    - Updated various naming changes.
    - Added the new permission client class to follow upstream
    - Modified the cookie handling to follow uptream (this needs
    to be double checked)
    - Various fixes in Java notably in XWalkContent where we now
    poke the internal core content. I wonder if we need to expose
    some of the method (e.g. stopLoading() and so forth).

Author: Dongseong Hwang <dongseong.hwang@intel.com>
Date:   Tue Feb 4 13:33:29 2014 +0200

    Make crosswalk-do-not-look-for-gtk2-when-using-aura.patch consistent with M34.

Author: Alexis Menard <alexis.menard@intel.com>
Date:   Mon Feb 3 09:23:56 2014 -0300

    Fix Mac build.

Author: Thiago Marcos P. Santos <thiago.santos@intel.com>
Date:   Fri Jan 31 21:40:11 2014 +0200

    Comply with Chromium style guide on class overrides

    And suppress a few clang warnings.

Author: Thiago Marcos P. Santos <thiago.santos@intel.com>
Date:   Fri Jan 31 21:51:16 2014 +0200

    Remove unused override

Author: Thiago Marcos P. Santos <thiago.santos@intel.com>
Date:   Fri Jan 31 21:36:06 2014 +0200

    Make clang happy

    clang could not do this implicit conversion, unlike gcc

Author: Thiago Marcos P. Santos <thiago.santos@intel.com>
Date:   Fri Jan 31 21:24:00 2014 +0200

    Update OpenColorChooser method signature

Author: Thiago Marcos P. Santos <thiago.santos@intel.com>
Date:   Fri Jan 31 20:25:15 2014 +0200

    Update methods that were renamed in the Content API

    Thanks Dongseong Hwang for helping debug this one.

Author: Thiago Marcos P. Santos <thiago.santos@intel.com>
Date:   Fri Jan 31 16:14:22 2014 +0200

    Fix link error when building Debug

Author: Thiago Marcos P. Santos <thiago.santos@intel.com>
Date:   Fri Jan 31 01:14:59 2014 +0200

    Disable suid sandbox for Linux

    I'm not sure if this is the right place to append the command line parameter,
    but after the Chromium version bump, PreEarlyInitialization() is not early
    enough.

Author: Thiago Marcos P. Santos <thiago.santos@intel.com>
Date:   Fri Jan 31 01:06:52 2014 +0200

    Fix xesh

Author: Thiago Marcos P. Santos <thiago.santos@intel.com>
Date:   Fri Jan 31 00:43:41 2014 +0200

    Fix V8 Tools

Author: Alexis Menard <alexis.menard@intel.com>
Date:   Thu Jan 30 10:47:09 2014 -0300

    Bump crosswalk to Chromium 34.0.1809.0

    - Updated DEPS.xwalk to remove custom checkouts
    (upstream is already after these revisions)
    - Updated gyp files to reflect upstream changes
    - Fixed various namespacing issues due to upstream changes
    - Fixed various changes in the V8 API (most of the time passing
    isolate when required)
    - Fixed few new functions in the public interface of content
    that are required to reimplement.
[application] The application termination via DBUS should consider 'OnSuspend' event handlers.

The application DBUS proxy should consider the fact that an
application might be still running even after its "Terminate"
method is called (if termination mode is 'Normal' and the app
contains 'OnSuspend' handlers) so it still should listen to
'owner' changes. Besides, the DBUS client should be able to
enforce termination - might be needed for example if 'OnSuspend'
event takes too long time and the User wants to stop the app
immediately.
This patch exports a new "ForceTerminate" DBUS method from
application proxy object and modifies its termination logic
accordingly to the requirements described above.
Merge pull request #1597 from rakuco/cr-roll-34.0.1809.2

Bump crosswalk to Chromium 34.0.1809.2.
Sync gyp_xwalk with the current contents of gyp_chromium.

gyp_chromium underwent a large amount of changes since M32 due to the work
on GN upstream. This broke the Android build (gyp_xwalk did not even detect
it was supposed to set up an Android build in the first place).

I have basically copied gyp_chromium on top of gyp_xwalk and applied the
relevant changes after comparing gyp_xwalk with M32's gyp_chromium, with the
addition of a change that does not run GN when using the make generator (as
a temporary measure to keep the Tizen build working while we find a better
solution).
Merge pull request #1599 from rakuco/sync-gyp_xwalk

Sync gyp_xwalk with the current contents of gyp_chromium.