| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |