OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_content/declarative_content_
css_condition_tracker.h" | 5 #include "chrome/browser/extensions/api/declarative_content/declarative_content_
css_condition_tracker.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/chrome_notification_types.h" | 13 #include "chrome/browser/chrome_notification_types.h" |
14 #include "chrome/browser/extensions/api/declarative_content/content_constants.h" | |
15 #include "chrome/browser/extensions/api/declarative_content/content_predicate_ev
aluator.h" | 14 #include "chrome/browser/extensions/api/declarative_content/content_predicate_ev
aluator.h" |
16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "content/public/browser/navigation_handle.h" | 16 #include "content/public/browser/navigation_handle.h" |
18 #include "content/public/browser/notification_service.h" | 17 #include "content/public/browser/notification_service.h" |
19 #include "content/public/browser/notification_source.h" | 18 #include "content/public/browser/notification_source.h" |
20 #include "content/public/browser/render_process_host.h" | 19 #include "content/public/browser/render_process_host.h" |
| 20 #include "extensions/common/api/declarative/declarative_constants.h" |
21 #include "extensions/common/extension_messages.h" | 21 #include "extensions/common/extension_messages.h" |
22 #include "ipc/ipc_message.h" | 22 #include "ipc/ipc_message.h" |
23 #include "ipc/ipc_message_macros.h" | 23 #include "ipc/ipc_message_macros.h" |
24 | 24 |
25 namespace extensions { | 25 namespace extensions { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 const char kInvalidTypeOfParameter[] = "Attribute '%s' has an invalid type"; | 29 const char kInvalidTypeOfParameter[] = "Attribute '%s' has an invalid type"; |
30 | 30 |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 } | 301 } |
302 } | 302 } |
303 | 303 |
304 void DeclarativeContentCssConditionTracker::DeletePerWebContentsTracker( | 304 void DeclarativeContentCssConditionTracker::DeletePerWebContentsTracker( |
305 content::WebContents* contents) { | 305 content::WebContents* contents) { |
306 DCHECK(base::ContainsKey(per_web_contents_tracker_, contents)); | 306 DCHECK(base::ContainsKey(per_web_contents_tracker_, contents)); |
307 per_web_contents_tracker_.erase(contents); | 307 per_web_contents_tracker_.erase(contents); |
308 } | 308 } |
309 | 309 |
310 } // namespace extensions | 310 } // namespace extensions |
OLD | NEW |