| 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/extensions/api/declarative/rules_registry_service.h" | 5 #include "chrome/browser/extensions/api/declarative/rules_registry_service.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
| 12 #include "chrome/browser/extensions/api/declarative/rules_cache_delegate.h" | 12 #include "chrome/browser/extensions/api/declarative/rules_cache_delegate.h" |
| 13 #include "chrome/browser/extensions/api/declarative_content/content_rules_regist
ry.h" | 13 #include "chrome/browser/extensions/api/declarative_content/content_rules_regist
ry.h" |
| 14 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_consta
nts.h" | 14 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_consta
nts.h" |
| 15 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_
registry.h" | 15 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_
registry.h" |
| 16 #include "chrome/browser/extensions/api/web_request/web_request_api.h" | 16 #include "chrome/browser/extensions/api/web_request/web_request_api.h" |
| 17 #include "chrome/common/extensions/extension.h" | |
| 18 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 19 #include "content/public/browser/notification_details.h" | 18 #include "content/public/browser/notification_details.h" |
| 20 #include "content/public/browser/notification_service.h" | 19 #include "content/public/browser/notification_service.h" |
| 21 #include "content/public/browser/notification_source.h" | 20 #include "content/public/browser/notification_source.h" |
| 22 #include "content/public/browser/render_process_host.h" | 21 #include "content/public/browser/render_process_host.h" |
| 22 #include "extensions/common/extension.h" |
| 23 | 23 |
| 24 namespace extensions { | 24 namespace extensions { |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 // Registers |web_request_rules_registry| on the IO thread. | 28 // Registers |web_request_rules_registry| on the IO thread. |
| 29 void RegisterToExtensionWebRequestEventRouterOnIO( | 29 void RegisterToExtensionWebRequestEventRouterOnIO( |
| 30 void* profile, | 30 void* profile, |
| 31 const RulesRegistryService::WebViewKey& webview_key, | 31 const RulesRegistryService::WebViewKey& webview_key, |
| 32 scoped_refptr<WebRequestRulesRegistry> web_request_rules_registry) { | 32 scoped_refptr<WebRequestRulesRegistry> web_request_rules_registry) { |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 RemoveWebViewRulesRegistries(process->GetID()); | 214 RemoveWebViewRulesRegistries(process->GetID()); |
| 215 break; | 215 break; |
| 216 } | 216 } |
| 217 default: | 217 default: |
| 218 NOTREACHED(); | 218 NOTREACHED(); |
| 219 break; | 219 break; |
| 220 } | 220 } |
| 221 } | 221 } |
| 222 | 222 |
| 223 } // namespace extensions | 223 } // namespace extensions |
| OLD | NEW |