[Extension ServiceWorkers] Chrome: Passing v8::context to extensions dispatcher
commita7fc1264e00391787a5c473255c39d4bfbd4bc90
authorannekao <annekao@google.com>
Tue, 11 Aug 2015 19:25:27 +0000 (11 12:25 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 11 Aug 2015 19:26:00 +0000 (11 19:26 +0000)
treef111b597748ad8cb89a849c63fe1e553d757947f
parent1b8f674328b63114d723fd7dc0f2d427370b7d85
[Extension ServiceWorkers] Chrome: Passing v8::context to extensions dispatcher

Pass the v8::context from the worker thread up to the extensions dispatcher.  In the dispatcher, 42 is binded to "chrome" for testing purposes.

Please view https://codereview.chromium.org/1264913002/ for the implementation done in blink.

BUG=501569

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

Cr-Commit-Position: refs/heads/master@{#342864}
13 files changed:
chrome/browser/extensions/service_worker_apitest.cc
chrome/renderer/chrome_content_renderer_client.cc
chrome/renderer/chrome_content_renderer_client.h
chrome/test/data/extensions/api_test/service_worker/bindings/manifest.json [new file with mode: 0644]
chrome/test/data/extensions/api_test/service_worker/bindings/page.html [new file with mode: 0644]
chrome/test/data/extensions/api_test/service_worker/bindings/page.js [new file with mode: 0644]
chrome/test/data/extensions/api_test/service_worker/bindings/sw.js [new file with mode: 0644]
chrome/test/data/extensions/api_test/service_worker/bindings/test.js [new file with mode: 0644]
content/public/renderer/content_renderer_client.h
content/renderer/service_worker/service_worker_context_client.cc
content/renderer/service_worker/service_worker_context_client.h
extensions/renderer/dispatcher.cc
extensions/renderer/dispatcher.h