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

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

Issue 2758103003: Extensions: Move IsIncognitoEnabled to extensions/ from chrome/. (Closed)
Patch Set: Address review Created 3 years, 9 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 (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_content/chrome_content_rules _registry.h" 5 #include "chrome/browser/extensions/api/declarative_content/chrome_content_rules _registry.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
11 #include "chrome/browser/extensions/api/declarative_content/content_constants.h" 11 #include "chrome/browser/extensions/api/declarative_content/content_constants.h"
12 #include "chrome/browser/extensions/extension_util.h" 12 #include "chrome/browser/extensions/extension_util.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
15 #include "chrome/browser/ui/tabs/tab_strip_model.h" 15 #include "chrome/browser/ui/tabs/tab_strip_model.h"
16 #include "content/public/browser/navigation_details.h" 16 #include "content/public/browser/navigation_details.h"
17 #include "content/public/browser/notification_service.h" 17 #include "content/public/browser/notification_service.h"
18 #include "content/public/browser/notification_source.h" 18 #include "content/public/browser/notification_source.h"
19 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
20 #include "extensions/browser/api/declarative/rules_registry_service.h" 20 #include "extensions/browser/api/declarative/rules_registry_service.h"
21 #include "extensions/browser/extension_registry.h" 21 #include "extensions/browser/extension_registry.h"
22 #include "extensions/browser/extension_system.h" 22 #include "extensions/browser/extension_system.h"
23 #include "extensions/browser/extension_util.h"
23 #include "extensions/common/extension_id.h" 24 #include "extensions/common/extension_id.h"
24 25
25 namespace extensions { 26 namespace extensions {
26 27
27 // 28 //
28 // EvaluationScope 29 // EvaluationScope
29 // 30 //
30 31
31 // Used to coalesce multiple requests for evaluation into a zero or one actual 32 // Used to coalesce multiple requests for evaluation into a zero or one actual
32 // evaluations (depending on the EvaluationDisposition). This is required for 33 // evaluations (depending on the EvaluationDisposition). This is required for
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 size_t count = 0; 422 size_t count = 0;
422 for (const auto& web_contents_rules_pair : active_rules_) 423 for (const auto& web_contents_rules_pair : active_rules_)
423 count += web_contents_rules_pair.second.size(); 424 count += web_contents_rules_pair.second.size();
424 return count; 425 return count;
425 } 426 }
426 427
427 ChromeContentRulesRegistry::~ChromeContentRulesRegistry() { 428 ChromeContentRulesRegistry::~ChromeContentRulesRegistry() {
428 } 429 }
429 430
430 } // namespace extensions 431 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698