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/web_request/web_request_api.h" | 5 #include "extensions/browser/api/web_request/web_request_api.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 using content::ResourceRequestInfo; | 70 using content::ResourceRequestInfo; |
71 using content::ResourceType; | 71 using content::ResourceType; |
72 | 72 |
73 namespace activity_log = activity_log_web_request_constants; | 73 namespace activity_log = activity_log_web_request_constants; |
74 namespace helpers = extension_web_request_api_helpers; | 74 namespace helpers = extension_web_request_api_helpers; |
75 namespace keys = extension_web_request_api_constants; | 75 namespace keys = extension_web_request_api_constants; |
76 | 76 |
77 namespace extensions { | 77 namespace extensions { |
78 | 78 |
79 namespace declarative_keys = declarative_webrequest_constants; | 79 namespace declarative_keys = declarative_webrequest_constants; |
80 namespace web_request = core_api::web_request; | 80 namespace web_request = api::web_request; |
81 | 81 |
82 namespace { | 82 namespace { |
83 | 83 |
84 const char kWebRequestEventPrefix[] = "webRequest."; | 84 const char kWebRequestEventPrefix[] = "webRequest."; |
85 | 85 |
86 // List of all the webRequest events. | 86 // List of all the webRequest events. |
87 const char* const kWebRequestEvents[] = { | 87 const char* const kWebRequestEvents[] = { |
88 keys::kOnBeforeRedirectEvent, | 88 keys::kOnBeforeRedirectEvent, |
89 web_request::OnBeforeRequest::kEventName, | 89 web_request::OnBeforeRequest::kEventName, |
90 keys::kOnBeforeSendHeadersEvent, | 90 keys::kOnBeforeSendHeadersEvent, |
(...skipping 2347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2438 // Continue gracefully. | 2438 // Continue gracefully. |
2439 RunSync(); | 2439 RunSync(); |
2440 } | 2440 } |
2441 | 2441 |
2442 bool WebRequestHandlerBehaviorChangedFunction::RunSync() { | 2442 bool WebRequestHandlerBehaviorChangedFunction::RunSync() { |
2443 helpers::ClearCacheOnNavigation(); | 2443 helpers::ClearCacheOnNavigation(); |
2444 return true; | 2444 return true; |
2445 } | 2445 } |
2446 | 2446 |
2447 } // namespace extensions | 2447 } // namespace extensions |
OLD | NEW |