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

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

Issue 220353002: Remove //chrome dependency from ExtensionPrefs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't ref ContentSettingsStore if !ENABLE_EXTENSIONS Created 6 years, 8 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PREFS_OBSERVER_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_OBSERVER_H_
7
8 #include <string>
9
10 #include "base/time/time.h"
11
12 namespace extensions {
13
14 class ExtensionPrefs;
15
16 class ExtensionPrefsObserver {
17 public:
18 // Called when the reasons for an extension being disabled have changed.
19 virtual void OnExtensionDisableReasonsChanged(const std::string& extension_id,
20 int disabled_reasons) {}
21
22 // Called when an extension is registered with ExtensionPrefs.
23 virtual void OnExtensionRegistered(const std::string& extension_id,
24 const base::Time& install_time,
25 bool is_enabled) {}
26
27 // Called when an extension's prefs have been loaded.
28 virtual void OnExtensionPrefsLoaded(const std::string& extension_id,
29 const ExtensionPrefs* prefs) {}
30
31 // Called when an extension's prefs are deleted.
32 virtual void OnExtensionPrefsDeleted(const std::string& extension_id) {}
33
34 // Called when an extension's enabled state pref is changed.
35 virtual void OnExtensionStateChanged(const std::string& extension_id,
36 bool state) {}
37 };
38
39 } // namespace extensions
40
41 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_OBSERVER_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_prefs_factory.cc ('k') | extensions/browser/extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698