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:: | |
|
Lei Zhang
2015/07/31 21:52:28
nit: I'd rather break the line after void, like on
annekao
2015/08/04 17:02:08
Done.
| |
| 1635 DidInitializeServiceWorkerContextOnWorkerThread( | |
| 1636 v8::Local<v8::Context> context, | |
|
Lei Zhang
2015/07/31 21:52:28
And then 4 space indent this.
annekao
2015/08/04 17:02:08
Done.
| |
| 1637 const GURL& url) { | |
| 1638 #if defined(ENABLE_EXTENSIONS) | |
| 1639 extensions::Dispatcher::DidInitializeServiceWorkerContextOnWorkerThread( | |
| 1640 context, url); | |
| 1641 #endif | |
| 1642 } | |
| OLD | NEW |