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 "extensions/browser/api/declarative_webrequest/webrequest_action.h" | 5 #include "extensions/browser/api/declarative_webrequest/webrequest_action.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "extensions/browser/api/web_request/web_request_api_constants.h" | 21 #include "extensions/browser/api/web_request/web_request_api_constants.h" |
22 #include "extensions/browser/api/web_request/web_request_api_helpers.h" | 22 #include "extensions/browser/api/web_request/web_request_api_helpers.h" |
23 #include "extensions/browser/api/web_request/web_request_permissions.h" | 23 #include "extensions/browser/api/web_request/web_request_permissions.h" |
24 #include "extensions/browser/guest_view/web_view/web_view_renderer_state.h" | 24 #include "extensions/browser/guest_view/web_view/web_view_renderer_state.h" |
25 #include "extensions/browser/info_map.h" | 25 #include "extensions/browser/info_map.h" |
26 #include "extensions/common/error_utils.h" | 26 #include "extensions/common/error_utils.h" |
27 #include "extensions/common/extension.h" | 27 #include "extensions/common/extension.h" |
28 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 28 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
29 #include "net/http/http_util.h" | 29 #include "net/http/http_util.h" |
30 #include "net/url_request/url_request.h" | 30 #include "net/url_request/url_request.h" |
31 #include "third_party/re2/re2/re2.h" | 31 #include "third_party/re2/src/re2/re2.h" |
32 | 32 |
33 using content::ResourceRequestInfo; | 33 using content::ResourceRequestInfo; |
34 | 34 |
35 namespace extensions { | 35 namespace extensions { |
36 | 36 |
37 namespace helpers = extension_web_request_api_helpers; | 37 namespace helpers = extension_web_request_api_helpers; |
38 namespace keys = declarative_webrequest_constants; | 38 namespace keys = declarative_webrequest_constants; |
39 | 39 |
40 namespace { | 40 namespace { |
41 // Error messages. | 41 // Error messages. |
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 const base::Time& extension_install_time) const { | 1156 const base::Time& extension_install_time) const { |
1157 CHECK(request_data.stage & stages()); | 1157 CHECK(request_data.stage & stages()); |
1158 LinkedPtrEventResponseDelta result( | 1158 LinkedPtrEventResponseDelta result( |
1159 new extension_web_request_api_helpers::EventResponseDelta( | 1159 new extension_web_request_api_helpers::EventResponseDelta( |
1160 extension_id, extension_install_time)); | 1160 extension_id, extension_install_time)); |
1161 result->messages_to_extension.insert(message_); | 1161 result->messages_to_extension.insert(message_); |
1162 return result; | 1162 return result; |
1163 } | 1163 } |
1164 | 1164 |
1165 } // namespace extensions | 1165 } // namespace extensions |
OLD | NEW |