Chromium Code Reviews| 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 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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::DidInitializeWorkerContext( | |
| 1635 v8::Local<v8::Context> context, | |
| 1636 const GURL& url) { | |
| 1637 extension_dispatcher_->DidInitializeWorkerContext(context, url); | |
|
Devlin
2015/07/30 21:31:08
Let's go ahead and make the method on dispatcher s
annekao
2015/07/30 22:54:17
Done.
| |
| 1638 } | |
| OLD | NEW |