Rename VideoCaptureDeviceImpl -> ContentVideoCaptureDeviceCore

The class in question isn't an implementation for a generic VideoCaptureDevice;
it's used just as the core of tab/desktop capture devices.  Rename it to
reflect function.

BUG=269312
TEST=local build on ChromeOS Linux

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250661 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 250661
Linux Aura: Fix missing system borders on KDE and other window managers.

When a window with system borders does not have a custom shape, its
XShape is set to null, rather than being set to a rectangle the size of
the window. Several window managers (including KDE, XFCE and XMonad)
refuse to put a native window border on a window with a custom shape.

BUG=338916

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250662 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 250662
Add Google Cloud Storage support to the documentation AppEngine server using Cloud Storage official Python client library.

With this CL, URL paths can be directly mapped to Cloud Storage buckets (http://developer.chrome.com/path/... -> gs://bucket/...) using content_storage.json configuration file.

open-source-thrid-party-reviews@ team: this CL adds a third-party library to Chromium repo. The library will be used only in the documentation server and it is the official Google library to access Google Cloud Storage from a Google AppEngine application (docs server).

BUG=338007

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250663 0039d316-1c4b-4281-b951-d872f2087c98
cc: Only make num_threads - 1 SkPicture clones.

Run on-demand raster on worker threads. This allows us to create
one fewer SkPicture clone as raster will never be done on the
compositor thread.

BUG=333855
TEST=cc_unittests --gtest_filter=LayerTreeHostOnDemandRasterPixelTest.RasterPictureLayer

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250664 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 250664
Make sticky keys overlay spacing dynamic based on the font size.

Revision 248131 deprecated constant font sizes and instead use predefined
font styles. We need to adjust the spacing to accomodate dynamic font sizes.

BUG=342537
TEST=visual

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250665 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 250665
Add the ability to show a demo app on OOBE if a machine is derelict.
If a machine has been idle for 8 hours+, we should start showing a demo app everytime the machine is idle for 5 minutes.
This CL depends on https://chrome-internal-review.googlesource.com/#/c/154276/

R=xiyuan@chromium.org, zelidrag@chromium.org
BUG=336585
TEST=Use the derelict-* flags to test demo mode app launching.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250666 0039d316-1c4b-4281-b951-d872f2087c98
Cast: Refactoring VideoReceiver to Clang format.

This cl is pure style-targeted refactoring. 
No functional changes were made. 

BUG=339176

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250667 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 250666
[Android] Lint pylib/gtest.

BUG=168518

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250668 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 250668
Support for the SendClosing message in content/

This permits Javascript to set the readyState to CLOSING when the server
initiates a closing handshake.

This requires the Blink-side support,
https://codereview.chromium.org/153563005/ to be checked in and rolled first.

BUG=340904
TEST=layout tests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250669 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 250669
Trace event micro-optimization: create "toplevel" category.

Some traces show that MessageLoop::RunTask is a hotspot.
It eventually calls into GetCategoryGroupEnabledInternal.
By making "toplevel" a built-in category, it saves a few strcmp during RunTask.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250671 0039d316-1c4b-4281-b951-d872f2087c98
(reland)

Remove threading from GpuVideoAcceleratorFactories

This change removes all the threading considerations from
GpuVideoAcceleratorFactories (and its implementation,
RendererGpuVideoAcceleratorFactories).  Most notably, it removes Abort() and
associated functions and state.  And with the removal of Abort() and friends,
we can also remove its Clone() interface.

All of the previously abortable operations on the RGVAF (with the exception of
ReadPixels()) can be made non-abortable, with no functional difference, due to
the way the users of RGVAF function.  These three users are
WebMediaPlayerImpl/GpuVideoDecoder, RTCVideoDecoder, and RTCVideoEncoder, and
they can be made non-abortable because:

WebMediaPlayerImpl/GpuVideoDecoder:
* Abort() is called from WebMediaPlayerImpl::Destroy().  It has no effect, as:
  * All the RGVAF entry points are called from the the RGVAF message loop
    from GpuVideoDecoder (except for ReadPixels()), so the Abort() has no
    effect on them.

RTCVideoDecoder:
* Abort() is called from RTCVideoDecoder::WillDestroyCurrentMessageLoop() for
  the RGVAF message loop.  It has no effect, as:
  * Amost all the RGVAF entry points are called from the RGVAF message loop
    (except for ReadPixels()), so Abort() has no effect on them.
  * The other exception is CreateVideoDecodeAccelerator(), which is called from
    RTC's main thread.  But as the Abort() is called from
    WillDestroyCurrentMessageLoop() for the RGVAF message loop itself, it is
    guaranteed to occur after any tasks posted to the RGVAF message loop by
    CreateVideoDecodeAccelerator() has completed, and so the Abort() has no
    effect.

RTCVideoEncoder:
* Abort() is called from RTCVideoDecoder::Release().  It has no effect, as:
  * All the RGVAF entry points are called from the RGVAF message loop.

The only functional difference remaining is that making ReadPixels()
non-abortable.  This is preferable, as as long as a completed video accelerator
texture is available, it should be readable.  We also specify that all calls to
ReadPixels must be made on the RGVAF message loop, like all other entry points,
and leave it up to the users of ReadPixels() to handle thread trampolining if
necessary.

This is a reland with one change after a revert of a revert of a revert of a
revert of a revert of r247480.  (WE NEED TO GO DEEPER)

BUG=306333
TEST=local build, run on CrOS snow; build, run unittests on desktop Linux
TBR=wuchengli@chromium.org, fischman@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250672 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 250671
Added --extended-response to put additional information into PTR responces.
Shortened service name.
Added AAAA response.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250673 0039d316-1c4b-4281-b951-d872f2087c98