[ServiceWorker] pipe RequestContext and FrameType to ServiceWorker. [2/2 chromium]

[1/2] blink: https://codereview.chromium.org/625513002/
[2/2] chromium: https://codereview.chromium.org/623663002/

BUG=411174,418469

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

Cr-Commit-Position: refs/heads/master@{#298000}
Files.app: Split background.js

This patch splits the background.js into the 3 files (background_base.js, app_window_wrapper.js, background.js), extracting the common classes.

This patch itself doesn't change any functionality, but the extracted files will be used in the separated audio player app in near future.

This patch is the reland of https://crrev.com/479878c12c436c0bec667483df29fe1f23b710a2

BUG=375039
TEST=browser_test passes
TBR=hirono@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#298001}
Chromecast: provides ExternalVideoSurfaceContainer for Android.

Since Chromecast on Android plays protected content and does so within
the bounds of the page (i.e. not launching the player full-screen over
the top of page content, as Clank does in this case), an
ExternalVideoSurfaceContainer is needed to provide a hardware-backed
video surface.

For the time being, the only implementation of this API has been
android_webview. This CL intends to use their existing code as a
starting point.

R=lcwu@chromium.org,byungchul@chromium.org,ycheo@chromium.org,qinmin@chromium.org
BUG=400876

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

Cr-Commit-Position: refs/heads/master@{#298002}
Roll src/third_party/WebKit 2c31c8c:dc8b209 (svn 183177:183178)

Summary of changes available at:
https://chromium.googlesource.com/chromium/blink/+log/2c31c8c..dc8b209

TBR=eustas@chromium.org,jsbell@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#298003}
Automated Commit: Committing new LKGM version 6326.0.0 for chromeos.

Cr-Commit-Position: refs/heads/master@{#298004}
[src/media] Declaring the weak_ptr_factory in proper order in cast,mojo and filters

Cleaning up weak_ptr_factory destruction order.
WeakPtrFactory should remain the last member so it'll be destroyed and
invalidate its weak pointers before any other members are destroyed.

BUG=303818

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

Cr-Commit-Position: refs/heads/master@{#298005}
media: Pass DemuxerStreamProvider in Renderer::Initialize().

Currently DemuxerStreamProvider is passed in the constructor of Renderer
implementations (e.g. RendererImpl and MojoRendererImpl). However, if we want to
create the Renderer earlier and pass it to WebMediaPlayerImpl or Pipeline, the
DemuxerStreamProvider may not be available yet. Meanwhile, when Renderer is
initialized by the Pipeline, DemuxerStreamProvider is always available.

This CL moves the DemuxerStreamProvider parameter to Renderer::Initialize() to
accommodate the above cases.

BUG=416570
TEST=Unit tests updated.

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

Cr-Commit-Position: refs/heads/master@{#298006}
Add tracing for the Pepper video Track plugin.

The purpose is to add hooks to easier analyze performance issues related to the Pepper Video plugin.

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

Cr-Commit-Position: refs/heads/master@{#298007}
Add AX attribute conversion for input type

Exposed input type for tel, search, url and email on mac and windows.
The Related CL:
https://codereview.chromium.org/596393004/

BUG=323161

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

Cr-Commit-Position: refs/heads/master@{#298008}
Add still image capture interface for VideoCaptureDevice.

BUG=413086
TEST=Run the media_unittests on peach_pit.

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

Cr-Commit-Position: refs/heads/master@{#298009}
Adding trace for all calls to and from a RTCPeerConnection.
The purpose is to help performance tracing.

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

Cr-Commit-Position: refs/heads/master@{#298010}
Roll src/third_party/WebKit dc8b209:eb18a32 (svn 183178:183179)

Summary of changes available at:
https://chromium.googlesource.com/chromium/blink/+log/dc8b209..eb18a32

TBR=eustas@chromium.org,jsbell@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#298011}
command_buffer: Remove unused shared id code (GenSharedIdsCHROMIUM, ...)

Remove unused shared id code from gpu command buffer. The functions
removed are glGenSharedIdsCHROMIUM, glDeleteSharedIdsCHROMIUM,
glRegisterSharedIdsCHROMIUM. The functions are not specified by the
pseudo-extensions and it appears as if they have never been called. Also
PPAPI does not expose these.

This simplifies working with id generation logic. Removes the extra,
unused id allocation for various id namespaces from the service side.

Also fixes gpu process null pointer deref when the *SharedId
commands would have an invalid namespace id.

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

Cr-Commit-Position: refs/heads/master@{#298012}
Handle dl role for browsertests
This patch enables AccessibilitDl test and adds the case for dl role in
browsertests on Mac and Android.

BUG=226505
R=dmazzoni@chromium.org, aboxhall@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#298013}
[SyncFS] Fill file_type field of OnFileChanged notification on file deletion

This field has been SYNC_FILE_TYPE_UNKNOWN recently, that prevents notification to be sent.

BUG=419749

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

Cr-Commit-Position: refs/heads/master@{#298014}
Added test case for CopyImageUrl and CopyEmailAddress.

Test case was missing for copyImageUrl and CopyEmailAddress options
newly added in context menu.
Added test case for same.

BUG=418073

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

Cr-Commit-Position: refs/heads/master@{#298015}
Files.app: Move updateLocationLine function from FileManager class to the UI class.

BUG=267281
TEST=None

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

Cr-Commit-Position: refs/heads/master@{#298016}
Roll src/third_party/WebKit eb18a32:27e916e (svn 183179:183180)

Summary of changes available at:
https://chromium.googlesource.com/chromium/blink/+log/eb18a32..27e916e

TBR=jsbell@chromium.org,hayato@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#298017}
[Android] Small refactoring to the fullscreen video code.

This change will help making things less confusing
when adding support for fullscreen for non-media
elements in the WebView.

BUG=398485

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

Cr-Commit-Position: refs/heads/master@{#298018}
Roll src/third_party/WebKit 27e916e:98f07e9 (svn 183180:183183)

Summary of changes available at:
https://chromium.googlesource.com/chromium/blink/+log/27e916e..98f07e9

TBR=jsbell@chromium.org,hayato@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#298019}