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

Unified Diff: chrome/browser/extensions/api/font_settings/font_settings_api.h

Issue 10830180: Moving font_settings extensions API to api/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moving "namespace extensions" up Created 8 years, 4 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 | « no previous file | chrome/browser/extensions/api/font_settings/font_settings_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/font_settings/font_settings_api.h
diff --git a/chrome/browser/extensions/extension_font_settings_api.h b/chrome/browser/extensions/api/font_settings/font_settings_api.h
similarity index 95%
rename from chrome/browser/extensions/extension_font_settings_api.h
rename to chrome/browser/extensions/api/font_settings/font_settings_api.h
index b55e578d4a3b90e093d72a0d452eb5b250fcdb6e..813fb7c86895b79386b5a79c34436ce66009efe6 100644
--- a/chrome/browser/extensions/extension_font_settings_api.h
+++ b/chrome/browser/extensions/api/font_settings/font_settings_api.h
@@ -5,8 +5,8 @@
// Defines the classes to realize the Font Settings Extension API as specified
// in the extension API JSON.
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__
+#ifndef CHROME_BROWSER_EXTENSIONS_API_FONT_SETTINGS_FONT_SETTINGS_API_H__
+#define CHROME_BROWSER_EXTENSIONS_API_FONT_SETTINGS_FONT_SETTINGS_API_H__
#include <map>
#include <string>
@@ -15,16 +15,18 @@
#include "chrome/browser/extensions/extension_function.h"
#include "chrome/browser/prefs/pref_change_registrar.h"
+namespace extensions {
+
// This class observes pref changed events on a profile and dispatches the
// corresponding extension API events to extensions.
-class ExtensionFontSettingsEventRouter : public content::NotificationObserver {
+class FontSettingsEventRouter : public content::NotificationObserver {
public:
// Constructor for observing pref changed events on |profile|. Stores a
// pointer to |profile| but does not take ownership. |profile| must be
// non-NULL and remain alive for the lifetime of the instance. Init() must be
// called to start observing pref changed events.
- explicit ExtensionFontSettingsEventRouter(Profile* profile);
- virtual ~ExtensionFontSettingsEventRouter();
+ explicit FontSettingsEventRouter(Profile* profile);
+ virtual ~FontSettingsEventRouter();
// Starts observing pref changed events on the profile. Must not be called
// more than once.
@@ -82,7 +84,7 @@ class ExtensionFontSettingsEventRouter : public content::NotificationObserver {
// Weak, owns us (transitively via ExtensionService).
Profile* profile_;
- DISALLOW_COPY_AND_ASSIGN(ExtensionFontSettingsEventRouter);
+ DISALLOW_COPY_AND_ASSIGN(FontSettingsEventRouter);
};
// fontSettings.clearFont API function.
@@ -295,4 +297,6 @@ class SetMinimumFontSizeFunction : public SetFontPrefExtensionFunction {
virtual const char* GetKey() OVERRIDE;
};
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_FONT_SETTINGS_FONT_SETTINGS_API_H__
« no previous file with comments | « no previous file | chrome/browser/extensions/api/font_settings/font_settings_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698