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

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

Issue 1256323008: [Extension ServiceWorkers] Chrome: Passing v8::context to extensions dispatcher (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 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 WebString header_key(ASCIIToUTF16( 1623 WebString header_key(ASCIIToUTF16(
1624 data_reduction_proxy::chrome_proxy_header())); 1624 data_reduction_proxy::chrome_proxy_header()));
1625 if (!response.httpHeaderField(header_key).isNull() && 1625 if (!response.httpHeaderField(header_key).isNull() &&
1626 response.httpHeaderField(header_key).utf8().find( 1626 response.httpHeaderField(header_key).utf8().find(
1627 data_reduction_proxy::chrome_proxy_lo_fi_directive()) != 1627 data_reduction_proxy::chrome_proxy_lo_fi_directive()) !=
1628 std::string::npos) { 1628 std::string::npos) {
1629 (*properties)[data_reduction_proxy::chrome_proxy_header()] = 1629 (*properties)[data_reduction_proxy::chrome_proxy_header()] =
1630 data_reduction_proxy::chrome_proxy_lo_fi_directive(); 1630 data_reduction_proxy::chrome_proxy_lo_fi_directive();
1631 } 1631 }
1632 } 1632 }
1633
1634 void ChromeContentRendererClient::
1635 DidInitializeServiceWorkerContextOnWorkerThread(
1636 v8::Local<v8::Context> context,
Devlin 2015/07/30 22:58:51 This indentation looks funny - was it git cl forma
annekao 2015/07/30 23:57:39 Yup.
1637 const GURL& url) {
1638 if (url.SchemeIs(extensions::kExtensionScheme)) {
Devlin 2015/07/30 22:58:51 Eh, I think the dispatcher should handle this chec
annekao 2015/07/30 23:57:39 Done.
1639 extension_dispatcher_->DidInitializeServiceWorkerContextOnWorkerThread(
Devlin 2015/07/30 22:58:51 This should be called statically.
annekao 2015/07/30 23:57:39 Done.
1640 context);
1641 }
1642 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698