Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 1318643002: Pass the v8::Context through the willDestroyServiceWorkerContextOnWorkerThread event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/chrome_content_renderer_client.h" 5 #include "chrome/renderer/chrome_content_renderer_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/crash_logging.h" 8 #include "base/debug/crash_logging.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after
1648 ChromeContentRendererClient::DidInitializeServiceWorkerContextOnWorkerThread( 1648 ChromeContentRendererClient::DidInitializeServiceWorkerContextOnWorkerThread(
1649 v8::Local<v8::Context> context, 1649 v8::Local<v8::Context> context,
1650 const GURL& url) { 1650 const GURL& url) {
1651 #if defined(ENABLE_EXTENSIONS) 1651 #if defined(ENABLE_EXTENSIONS)
1652 extensions::Dispatcher::DidInitializeServiceWorkerContextOnWorkerThread( 1652 extensions::Dispatcher::DidInitializeServiceWorkerContextOnWorkerThread(
1653 context, url); 1653 context, url);
1654 #endif 1654 #endif
1655 } 1655 }
1656 1656
1657 void ChromeContentRendererClient::WillDestroyServiceWorkerContextOnWorkerThread( 1657 void ChromeContentRendererClient::WillDestroyServiceWorkerContextOnWorkerThread(
1658 v8::Local<v8::Context> context,
1658 const GURL& url) { 1659 const GURL& url) {
1659 #if defined(ENABLE_EXTENSIONS) 1660 #if defined(ENABLE_EXTENSIONS)
1660 extensions::Dispatcher::WillDestroyServiceWorkerContextOnWorkerThread(url); 1661 extensions::Dispatcher::WillDestroyServiceWorkerContextOnWorkerThread(context,
1662 url);
1661 #endif 1663 #endif
1662 } 1664 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698