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

Side by Side Diff: chrome/browser/extensions/external_policy_loader.h

Issue 140343002: extensions: Relocate pref name constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing include for mac Created 6 years, 11 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 | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_LOADER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_LOADER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_LOADER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_LOADER_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/prefs/pref_change_registrar.h" 11 #include "base/prefs/pref_change_registrar.h"
12 #include "chrome/browser/extensions/external_loader.h" 12 #include "chrome/browser/extensions/external_loader.h"
13 #include "content/public/browser/notification_observer.h" 13 #include "content/public/browser/notification_observer.h"
14 #include "content/public/browser/notification_registrar.h" 14 #include "content/public/browser/notification_registrar.h"
15 15
16 class Profile; 16 class Profile;
17 17
18 namespace base { 18 namespace base {
19 class DictionaryValue; 19 class DictionaryValue;
20 } 20 }
21 21
22 namespace extensions { 22 namespace extensions {
23 23
24 // A specialization of the ExternalProvider that uses 24 // A specialization of the ExternalProvider that uses
25 // prefs::kExtensionInstallForceList to look up which external extensions are 25 // pref_names::kInstallForceList to look up which external extensions are
26 // registered. 26 // registered.
27 class ExternalPolicyLoader 27 class ExternalPolicyLoader
28 : public ExternalLoader, 28 : public ExternalLoader,
29 public content::NotificationObserver { 29 public content::NotificationObserver {
30 public: 30 public:
31 explicit ExternalPolicyLoader(Profile* profile); 31 explicit ExternalPolicyLoader(Profile* profile);
32 32
33 // content::NotificationObserver implementation 33 // content::NotificationObserver implementation
34 virtual void Observe(int type, 34 virtual void Observe(int type,
35 const content::NotificationSource& source, 35 const content::NotificationSource& source,
(...skipping 16 matching lines...) Expand all
52 content::NotificationRegistrar notification_registrar_; 52 content::NotificationRegistrar notification_registrar_;
53 53
54 Profile* profile_; 54 Profile* profile_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(ExternalPolicyLoader); 56 DISALLOW_COPY_AND_ASSIGN(ExternalPolicyLoader);
57 }; 57 };
58 58
59 } // namespace extensions 59 } // namespace extensions
60 60
61 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_LOADER_H_ 61 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698