Mojo: First pass at cross-process passing of MessagePipe handles.

There's still stuff left to do:
- Some high-priority TODOs are marked with an additional FIXME (mostly
  for my benefit).
- Notably, we need better error handling (in particular, if the other
  process spews garbage, we should correctly detect this and not die).
- There's a crasher bug (see RemoteMessagePipeTest.HandlePassing).
- Also, we need more testing, and more end-to-end testing.

R=darin@chromium.org

Review URL: https://codereview.chromium.org/180953003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254946 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 254946
Convert scoped_ptr_malloc -> scoped_ptr, part 4.

scoped_ptr_malloc is deprecated; let's get rid of it.

This takes care of the remaining "easy" conversions in media/. The
others require more thought/effort, since scoped_ptr requires a full
declaration of the deleter (unlike scoped_ptr_malloc). I may have a
reasonable solution for that, but it'll require discussion with the
"owners" of scoped_ptr.h.

BUG=344245
R=dalecurtis@chromium.org

Review URL: https://codereview.chromium.org/176983003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254947 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 254947
[IME] migrate the xkb ID to extension based xkb ID.

BUG=345604
TEST=None

Review URL: https://codereview.chromium.org/178343005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254948 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 254948
Use internationalization strings instead of constants.

BUG=None

Review URL: https://codereview.chromium.org/186483003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254949 0039d316-1c4b-4281-b951-d872f2087c98
Reorganize test cases in directory_backing_store_unittest.cc.

Reorganize test cases in preparation for adding a version 87 of the sync
database. Move checks out of MigrateVersion85To86 and into
ToCurrentVersion. Rewrite SetUpVersion86Database using output obtained
from MigrateToLatestAndDump.

BUG=348625

Review URL: https://codereview.chromium.org/186283004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254950 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 254950
Allow cross-origin XHR in unblessed extension context

Allow non-sandboxed extension pages in a non-extension process to use cross-origin XHR when the extension has the correct permissions.

Removed duplicate XHR origin whitelisting logic. Now the XHR origin logic for content scripts is identical to the extension's.

Contributed by Rob Wu <rob@robwu.nl>

BUG=302548
TEST=Follow the steps-to-reproduce in the linked bug.

Review URL: https://codereview.chromium.org/169053005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254951 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 254951