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

Side by Side Diff: chrome/browser/prefs/pref_service.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 // This provides a way to access the application's current preferences. 5 // This provides a way to access the application's current preferences.
6 6
7 // Chromium settings and storage represent user-selected preferences and 7 // Chromium settings and storage represent user-selected preferences and
8 // information and MUST not be extracted, overwritten or modified except 8 // information and MUST not be extracted, overwritten or modified except
9 // through Chromium defined APIs. 9 // through Chromium defined APIs.
10 10
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // PrefServiceBase implementation. 112 // PrefServiceBase implementation.
113 virtual bool IsManagedPreference(const char* pref_name) const OVERRIDE; 113 virtual bool IsManagedPreference(const char* pref_name) const OVERRIDE;
114 virtual bool IsUserModifiablePreference(const char* pref_name) const OVERRIDE; 114 virtual bool IsUserModifiablePreference(const char* pref_name) const OVERRIDE;
115 virtual void UnregisterPreference(const char* path) OVERRIDE; 115 virtual void UnregisterPreference(const char* path) OVERRIDE;
116 virtual const PrefService::Preference* FindPreference( 116 virtual const PrefService::Preference* FindPreference(
117 const char* path) const OVERRIDE; 117 const char* path) const OVERRIDE;
118 virtual bool GetBoolean(const char* path) const OVERRIDE; 118 virtual bool GetBoolean(const char* path) const OVERRIDE;
119 virtual int GetInteger(const char* path) const OVERRIDE; 119 virtual int GetInteger(const char* path) const OVERRIDE;
120 virtual double GetDouble(const char* path) const OVERRIDE; 120 virtual double GetDouble(const char* path) const OVERRIDE;
121 virtual std::string GetString(const char* path) const OVERRIDE; 121 virtual std::string GetString(const char* path) const OVERRIDE;
122 virtual FilePath GetFilePath(const char* path) const OVERRIDE; 122 virtual base::FilePath GetFilePath(const char* path) const OVERRIDE;
123 virtual const base::DictionaryValue* GetDictionary( 123 virtual const base::DictionaryValue* GetDictionary(
124 const char* path) const OVERRIDE; 124 const char* path) const OVERRIDE;
125 virtual const base::ListValue* GetList(const char* path) const OVERRIDE; 125 virtual const base::ListValue* GetList(const char* path) const OVERRIDE;
126 virtual void ClearPref(const char* path) OVERRIDE; 126 virtual void ClearPref(const char* path) OVERRIDE;
127 virtual void Set(const char* path, const base::Value& value) OVERRIDE; 127 virtual void Set(const char* path, const base::Value& value) OVERRIDE;
128 virtual void SetBoolean(const char* path, bool value) OVERRIDE; 128 virtual void SetBoolean(const char* path, bool value) OVERRIDE;
129 virtual void SetInteger(const char* path, int value) OVERRIDE; 129 virtual void SetInteger(const char* path, int value) OVERRIDE;
130 virtual void SetDouble(const char* path, double value) OVERRIDE; 130 virtual void SetDouble(const char* path, double value) OVERRIDE;
131 virtual void SetString(const char* path, const std::string& value) OVERRIDE; 131 virtual void SetString(const char* path, const std::string& value) OVERRIDE;
132 virtual void SetFilePath(const char* path, const FilePath& value) OVERRIDE; 132 virtual void SetFilePath(const char* path,
133 const base::FilePath& value) OVERRIDE;
133 virtual void SetInt64(const char* path, int64 value) OVERRIDE; 134 virtual void SetInt64(const char* path, int64 value) OVERRIDE;
134 virtual int64 GetInt64(const char* path) const OVERRIDE; 135 virtual int64 GetInt64(const char* path) const OVERRIDE;
135 virtual void SetUint64(const char* path, uint64 value) OVERRIDE; 136 virtual void SetUint64(const char* path, uint64 value) OVERRIDE;
136 virtual uint64 GetUint64(const char* path) const OVERRIDE; 137 virtual uint64 GetUint64(const char* path) const OVERRIDE;
137 138
138 // Returns the value of the given preference, from the user pref store. If 139 // Returns the value of the given preference, from the user pref store. If
139 // the preference is not set in the user pref store, returns NULL. 140 // the preference is not set in the user pref store, returns NULL.
140 const base::Value* GetUserPrefValue(const char* path) const; 141 const base::Value* GetUserPrefValue(const char* path) const;
141 142
142 // Returns the default value of the given preference. |path| must point to a 143 // Returns the default value of the given preference. |path| must point to a
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 DISALLOW_COPY_AND_ASSIGN(PrefService); 246 DISALLOW_COPY_AND_ASSIGN(PrefService);
246 }; 247 };
247 248
248 // TODO(joi): Remove these forwards. They were placed here temporarily 249 // TODO(joi): Remove these forwards. They were placed here temporarily
249 // to limit the size of the initial change that split 250 // to limit the size of the initial change that split
250 // PrefServiceSimple and PrefServiceSyncable out of PrefService. 251 // PrefServiceSimple and PrefServiceSyncable out of PrefService.
251 #include "chrome/browser/prefs/pref_service_simple.h" 252 #include "chrome/browser/prefs/pref_service_simple.h"
252 #include "chrome/browser/prefs/pref_service_syncable.h" 253 #include "chrome/browser/prefs/pref_service_syncable.h"
253 254
254 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_ 255 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/chrome_pref_service_factory.h ('k') | chrome/browser/prefs/pref_service_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698