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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/extension_prefs_factory.cc ('k') | extensions/browser/extensions_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_prefs_observer.h
diff --git a/extensions/browser/extension_prefs_observer.h b/extensions/browser/extension_prefs_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..ff836810e7ee350ca21a9f0e6c271f31fce4355f
--- /dev/null
+++ b/extensions/browser/extension_prefs_observer.h
@@ -0,0 +1,41 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EXTENSIONS_BROWSER_EXTENSION_PREFS_OBSERVER_H_
+#define EXTENSIONS_BROWSER_EXTENSION_PREFS_OBSERVER_H_
+
+#include <string>
+
+#include "base/time/time.h"
+
+namespace extensions {
+
+class ExtensionPrefs;
+
+class ExtensionPrefsObserver {
+ public:
+ // Called when the reasons for an extension being disabled have changed.
+ virtual void OnExtensionDisableReasonsChanged(const std::string& extension_id,
+ int disabled_reasons) {}
+
+ // Called when an extension is registered with ExtensionPrefs.
+ virtual void OnExtensionRegistered(const std::string& extension_id,
+ const base::Time& install_time,
+ bool is_enabled) {}
+
+ // Called when an extension's prefs have been loaded.
+ virtual void OnExtensionPrefsLoaded(const std::string& extension_id,
+ const ExtensionPrefs* prefs) {}
+
+ // Called when an extension's prefs are deleted.
+ virtual void OnExtensionPrefsDeleted(const std::string& extension_id) {}
+
+ // Called when an extension's enabled state pref is changed.
+ virtual void OnExtensionStateChanged(const std::string& extension_id,
+ bool state) {}
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_OBSERVER_H_
« 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