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

Side by Side Diff: extensions/browser/extension_registry.h

Issue 645043003: Cleanup: Prevent usage of various extension headers when extensions support is not compiled in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | extensions/browser/extension_system.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "components/keyed_service/core/keyed_service.h" 13 #include "components/keyed_service/core/keyed_service.h"
14 #include "extensions/browser/uninstall_reason.h" 14 #include "extensions/browser/uninstall_reason.h"
15 #include "extensions/common/extension_set.h" 15 #include "extensions/common/extension_set.h"
16 16
17 #if !defined(ENABLE_EXTENSIONS)
18 #error "Extensions must be enabled"
19 #endif
20
17 namespace content { 21 namespace content {
18 class BrowserContext; 22 class BrowserContext;
19 } 23 }
20 24
21 namespace extensions { 25 namespace extensions {
22 class Extension; 26 class Extension;
23 class ExtensionRegistryObserver; 27 class ExtensionRegistryObserver;
24 28
25 // ExtensionRegistry holds sets of the installed extensions for a given 29 // ExtensionRegistry holds sets of the installed extensions for a given
26 // BrowserContext. An incognito browser context and its master browser context 30 // BrowserContext. An incognito browser context and its master browser context
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 ObserverList<ExtensionRegistryObserver> observers_; 167 ObserverList<ExtensionRegistryObserver> observers_;
164 168
165 content::BrowserContext* const browser_context_; 169 content::BrowserContext* const browser_context_;
166 170
167 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); 171 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry);
168 }; 172 };
169 173
170 } // namespace extensions 174 } // namespace extensions
171 175
172 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 176 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | extensions/browser/extension_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698