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/browser/renderer_host/chrome_resource_dispatcher_host_delegate.
h" | 5 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.
h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 #include "content/public/common/resource_response.h" | 52 #include "content/public/common/resource_response.h" |
53 #include "extensions/browser/info_map.h" | 53 #include "extensions/browser/info_map.h" |
54 #include "extensions/common/constants.h" | 54 #include "extensions/common/constants.h" |
55 #include "extensions/common/user_script.h" | 55 #include "extensions/common/user_script.h" |
56 #include "net/base/load_flags.h" | 56 #include "net/base/load_flags.h" |
57 #include "net/base/load_timing_info.h" | 57 #include "net/base/load_timing_info.h" |
58 #include "net/base/request_priority.h" | 58 #include "net/base/request_priority.h" |
59 #include "net/http/http_response_headers.h" | 59 #include "net/http/http_response_headers.h" |
60 #include "net/url_request/url_request.h" | 60 #include "net/url_request/url_request.h" |
61 | 61 |
| 62 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 63 #include "components/policy/core/common/cloud/policy_header_io_helper.h" |
| 64 #endif |
| 65 |
62 #if defined(ENABLE_EXTENSIONS) | 66 #if defined(ENABLE_EXTENSIONS) |
63 #include "chrome/browser/guest_view/web_view/web_view_renderer_state.h" | 67 #include "chrome/browser/guest_view/web_view/web_view_renderer_state.h" |
64 #endif | 68 #endif |
65 | 69 |
66 #if defined(ENABLE_CONFIGURATION_POLICY) | |
67 #include "components/policy/core/common/cloud/policy_header_io_helper.h" | |
68 #endif | |
69 | |
70 #if defined(ENABLE_MANAGED_USERS) | 70 #if defined(ENABLE_MANAGED_USERS) |
71 #include "chrome/browser/supervised_user/supervised_user_resource_throttle.h" | 71 #include "chrome/browser/supervised_user/supervised_user_resource_throttle.h" |
72 #endif | 72 #endif |
73 | 73 |
74 #if defined(USE_SYSTEM_PROTOBUF) | 74 #if defined(USE_SYSTEM_PROTOBUF) |
75 #include <google/protobuf/repeated_field.h> | 75 #include <google/protobuf/repeated_field.h> |
76 #else | 76 #else |
77 #include "third_party/protobuf/src/google/protobuf/repeated_field.h" | 77 #include "third_party/protobuf/src/google/protobuf/repeated_field.h" |
78 #endif | 78 #endif |
79 | 79 |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 url_request->GetTotalReceivedBytes())); | 719 url_request->GetTotalReceivedBytes())); |
720 } | 720 } |
721 } | 721 } |
722 | 722 |
723 // static | 723 // static |
724 void ChromeResourceDispatcherHostDelegate:: | 724 void ChromeResourceDispatcherHostDelegate:: |
725 SetExternalProtocolHandlerDelegateForTesting( | 725 SetExternalProtocolHandlerDelegateForTesting( |
726 ExternalProtocolHandler::Delegate* delegate) { | 726 ExternalProtocolHandler::Delegate* delegate) { |
727 g_external_protocol_handler_delegate = delegate; | 727 g_external_protocol_handler_delegate = delegate; |
728 } | 728 } |
OLD | NEW |