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

Side by Side Diff: chrome/browser/extensions/api/font_settings/font_settings_api.h

Issue 10828345: Extract PrefServiceBase into chrome/browser/api. Use in api and autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head 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 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 // Defines the classes to realize the Font Settings Extension API as specified 5 // Defines the classes to realize the Font Settings Extension API as specified
6 // in the extension API JSON. 6 // in the extension API JSON.
7 7
8 #ifndef CHROME_BROWSER_EXTENSIONS_API_FONT_SETTINGS_FONT_SETTINGS_API_H__ 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_FONT_SETTINGS_FONT_SETTINGS_API_H__
9 #define CHROME_BROWSER_EXTENSIONS_API_FONT_SETTINGS_FONT_SETTINGS_API_H__ 9 #define CHROME_BROWSER_EXTENSIONS_API_FONT_SETTINGS_FONT_SETTINGS_API_H__
10 10
11 #include <map> 11 #include <map>
12 #include <string> 12 #include <string>
13 #include <utility> 13 #include <utility>
14 14
15 #include "chrome/browser/api/prefs/pref_change_registrar.h" 15 #include "chrome/browser/api/prefs/pref_change_registrar.h"
16 #include "chrome/browser/extensions/extension_function.h" 16 #include "chrome/browser/extensions/extension_function.h"
17 #include "chrome/browser/prefs/pref_service.h"
17 18
18 namespace extensions { 19 namespace extensions {
19 20
20 // This class observes pref changed events on a profile and dispatches the 21 // This class observes pref changed events on a profile and dispatches the
21 // corresponding extension API events to extensions. 22 // corresponding extension API events to extensions.
22 class FontSettingsEventRouter : public content::NotificationObserver { 23 class FontSettingsEventRouter : public content::NotificationObserver {
23 public: 24 public:
24 // Constructor for observing pref changed events on |profile|. Stores a 25 // Constructor for observing pref changed events on |profile|. Stores a
25 // pointer to |profile| but does not take ownership. |profile| must be 26 // pointer to |profile| but does not take ownership. |profile| must be
26 // non-NULL and remain alive for the lifetime of the instance. Init() must be 27 // non-NULL and remain alive for the lifetime of the instance. Init() must be
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 virtual ~SetMinimumFontSizeFunction() {} 294 virtual ~SetMinimumFontSizeFunction() {}
294 295
295 // SetFontPrefExtensionFunction: 296 // SetFontPrefExtensionFunction:
296 virtual const char* GetPrefName() OVERRIDE; 297 virtual const char* GetPrefName() OVERRIDE;
297 virtual const char* GetKey() OVERRIDE; 298 virtual const char* GetKey() OVERRIDE;
298 }; 299 };
299 300
300 } // namespace extensions 301 } // namespace extensions
301 302
302 #endif // CHROME_BROWSER_EXTENSIONS_API_FONT_SETTINGS_FONT_SETTINGS_API_H__ 303 #endif // CHROME_BROWSER_EXTENSIONS_API_FONT_SETTINGS_FONT_SETTINGS_API_H__
OLDNEW
« no previous file with comments | « chrome/browser/download/download_prefs.cc ('k') | chrome/browser/net/chrome_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698