| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 using extensions::InfoMap; | 74 using extensions::InfoMap; |
| 75 using extensions::Feature; | 75 using extensions::Feature; |
| 76 using extensions::RulesRegistryService; | 76 using extensions::RulesRegistryService; |
| 77 using extensions::Warning; | 77 using extensions::Warning; |
| 78 using extensions::WarningService; | 78 using extensions::WarningService; |
| 79 using extensions::WarningSet; | 79 using extensions::WarningSet; |
| 80 | 80 |
| 81 namespace activitylog = activity_log_web_request_constants; | 81 namespace activitylog = activity_log_web_request_constants; |
| 82 namespace helpers = extension_web_request_api_helpers; | 82 namespace helpers = extension_web_request_api_helpers; |
| 83 namespace keys = extension_web_request_api_constants; | 83 namespace keys = extension_web_request_api_constants; |
| 84 namespace web_request = extensions::core_api::web_request; | 84 namespace web_request = extensions::api::web_request; |
| 85 namespace declarative_keys = extensions::declarative_webrequest_constants; | 85 namespace declarative_keys = extensions::declarative_webrequest_constants; |
| 86 | 86 |
| 87 namespace { | 87 namespace { |
| 88 | 88 |
| 89 const char kWebRequestEventPrefix[] = "webRequest."; | 89 const char kWebRequestEventPrefix[] = "webRequest."; |
| 90 | 90 |
| 91 // List of all the webRequest events. | 91 // List of all the webRequest events. |
| 92 const char* const kWebRequestEvents[] = { | 92 const char* const kWebRequestEvents[] = { |
| 93 keys::kOnBeforeRedirectEvent, | 93 keys::kOnBeforeRedirectEvent, |
| 94 web_request::OnBeforeRequest::kEventName, | 94 web_request::OnBeforeRequest::kEventName, |
| (...skipping 2362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2457 base::Bind(&WarningService::NotifyWarningsOnUI, profile_id(), warnings)); | 2457 base::Bind(&WarningService::NotifyWarningsOnUI, profile_id(), warnings)); |
| 2458 | 2458 |
| 2459 // Continue gracefully. | 2459 // Continue gracefully. |
| 2460 RunSync(); | 2460 RunSync(); |
| 2461 } | 2461 } |
| 2462 | 2462 |
| 2463 bool WebRequestHandlerBehaviorChangedFunction::RunSync() { | 2463 bool WebRequestHandlerBehaviorChangedFunction::RunSync() { |
| 2464 helpers::ClearCacheOnNavigation(); | 2464 helpers::ClearCacheOnNavigation(); |
| 2465 return true; | 2465 return true; |
| 2466 } | 2466 } |
| OLD | NEW |