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

Unified Diff: chrome/browser/extensions/api/preference/preference_api.h

Issue 10952021: Moving preference API into api/preferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
Index: chrome/browser/extensions/api/preference/preference_api.h
diff --git a/chrome/browser/extensions/extension_preference_api.h b/chrome/browser/extensions/api/preference/preference_api.h
similarity index 88%
rename from chrome/browser/extensions/extension_preference_api.h
rename to chrome/browser/extensions/api/preference/preference_api.h
index edf95a86975eb6b4d0f752de74f87c60b5510359..24eb208296036f01169359c8d6c3ed3e688dc555 100644
--- a/chrome/browser/extensions/extension_preference_api.h
+++ b/chrome/browser/extensions/api/preference/preference_api.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__
+#ifndef CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__
+#define CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__
#include <string>
@@ -17,10 +17,12 @@ namespace base {
class Value;
}
-class ExtensionPreferenceEventRouter : public content::NotificationObserver {
+namespace extensions {
+
+class PreferenceEventRouter : public content::NotificationObserver {
public:
- explicit ExtensionPreferenceEventRouter(Profile* profile);
- virtual ~ExtensionPreferenceEventRouter();
+ explicit PreferenceEventRouter(Profile* profile);
+ virtual ~PreferenceEventRouter();
private:
// content::NotificationObserver implementation.
@@ -41,7 +43,7 @@ class ExtensionPreferenceEventRouter : public content::NotificationObserver {
// Weak, owns us (transitively via ExtensionService).
Profile* profile_;
- DISALLOW_COPY_AND_ASSIGN(ExtensionPreferenceEventRouter);
+ DISALLOW_COPY_AND_ASSIGN(PreferenceEventRouter);
};
class PrefTransformerInterface {
@@ -115,4 +117,6 @@ class ClearPreferenceFunction : public PreferenceFunction {
virtual bool RunImpl() OVERRIDE;
};
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__

Powered by Google App Engine
This is Rietveld 408576698