OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/subresource_filter/content/browser/content_ruleset_service.
h" | 5 #include "components/subresource_filter/content/browser/content_ruleset_service.
h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/sequenced_task_runner.h" |
12 #include "components/subresource_filter/content/common/subresource_filter_messag
es.h" | 13 #include "components/subresource_filter/content/common/subresource_filter_messag
es.h" |
13 #include "components/subresource_filter/core/browser/ruleset_service.h" | 14 #include "components/subresource_filter/core/browser/ruleset_service.h" |
14 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/notification_service.h" | 16 #include "content/public/browser/notification_service.h" |
16 #include "content/public/browser/notification_source.h" | 17 #include "content/public/browser/notification_source.h" |
17 #include "content/public/browser/notification_types.h" | 18 #include "content/public/browser/notification_types.h" |
18 #include "content/public/browser/render_process_host.h" | 19 #include "content/public/browser/render_process_host.h" |
19 #include "ipc/ipc_platform_file.h" | 20 #include "ipc/ipc_platform_file.h" |
20 | 21 |
21 namespace subresource_filter { | 22 namespace subresource_filter { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 const content::NotificationDetails& details) { | 110 const content::NotificationDetails& details) { |
110 DCHECK_EQ(type, content::NOTIFICATION_RENDERER_PROCESS_CREATED); | 111 DCHECK_EQ(type, content::NOTIFICATION_RENDERER_PROCESS_CREATED); |
111 if (!ruleset_data_.IsValid()) | 112 if (!ruleset_data_.IsValid()) |
112 return; | 113 return; |
113 SendRulesetToRenderProcess( | 114 SendRulesetToRenderProcess( |
114 &ruleset_data_, | 115 &ruleset_data_, |
115 content::Source<content::RenderProcessHost>(source).ptr()); | 116 content::Source<content::RenderProcessHost>(source).ptr()); |
116 } | 117 } |
117 | 118 |
118 } // namespace subresource_filter | 119 } // namespace subresource_filter |
OLD | NEW |