Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.cc

Issue 2853023002: [Extensions Bindings] Add native declarativeContent verification (Closed)
Patch Set: lazyboy's Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698