| 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" | |
| 12 #include "chrome/browser/extensions/api/declarative/rules_cache_delegate.h" | |
| 13 #include "chrome/browser/extensions/api/declarative_content/content_rules_regist
ry.h" | 11 #include "chrome/browser/extensions/api/declarative_content/content_rules_regist
ry.h" |
| 14 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_
registry.h" | 12 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_
registry.h" |
| 15 #include "chrome/browser/extensions/api/web_request/web_request_api.h" | 13 #include "chrome/browser/extensions/api/web_request/web_request_api.h" |
| 16 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 17 #include "content/public/browser/notification_details.h" | 15 #include "content/public/browser/notification_details.h" |
| 18 #include "content/public/browser/notification_service.h" | 16 #include "content/public/browser/notification_service.h" |
| 19 #include "content/public/browser/notification_source.h" | 17 #include "content/public/browser/notification_source.h" |
| 18 #include "content/public/browser/notification_types.h" |
| 20 #include "content/public/browser/render_process_host.h" | 19 #include "content/public/browser/render_process_host.h" |
| 20 #include "extensions/browser/api/declarative/rules_cache_delegate.h" |
| 21 #include "extensions/browser/api/declarative_webrequest/webrequest_constants.h" | 21 #include "extensions/browser/api/declarative_webrequest/webrequest_constants.h" |
| 22 #include "extensions/browser/extension_registry.h" | 22 #include "extensions/browser/extension_registry.h" |
| 23 #include "extensions/common/extension.h" | 23 #include "extensions/common/extension.h" |
| 24 | 24 |
| 25 namespace extensions { | 25 namespace extensions { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 // Registers |web_request_rules_registry| on the IO thread. | 29 // Registers |web_request_rules_registry| on the IO thread. |
| 30 void RegisterToExtensionWebRequestEventRouterOnIO( | 30 void RegisterToExtensionWebRequestEventRouterOnIO( |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 const content::NotificationSource& source, | 224 const content::NotificationSource& source, |
| 225 const content::NotificationDetails& details) { | 225 const content::NotificationDetails& details) { |
| 226 DCHECK_EQ(content::NOTIFICATION_RENDERER_PROCESS_TERMINATED, type); | 226 DCHECK_EQ(content::NOTIFICATION_RENDERER_PROCESS_TERMINATED, type); |
| 227 | 227 |
| 228 content::RenderProcessHost* process = | 228 content::RenderProcessHost* process = |
| 229 content::Source<content::RenderProcessHost>(source).ptr(); | 229 content::Source<content::RenderProcessHost>(source).ptr(); |
| 230 RemoveWebViewRulesRegistries(process->GetID()); | 230 RemoveWebViewRulesRegistries(process->GetID()); |
| 231 } | 231 } |
| 232 | 232 |
| 233 } // namespace extensions | 233 } // namespace extensions |
| OLD | NEW |