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

Side by Side Diff: extensions/browser/extension_prefs.h

Issue 622343002: replace OVERRIDE and FINAL with override and final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // Checks whether |extension_id| is marked as greylisted. 214 // Checks whether |extension_id| is marked as greylisted.
215 // TODO(oleg): Replace IsExtensionBlacklisted by this method. 215 // TODO(oleg): Replace IsExtensionBlacklisted by this method.
216 BlacklistState GetExtensionBlacklistState(const std::string& extension_id); 216 BlacklistState GetExtensionBlacklistState(const std::string& extension_id);
217 217
218 // Populates |out| with the ids of all installed extensions. 218 // Populates |out| with the ids of all installed extensions.
219 void GetExtensions(ExtensionIdList* out); 219 void GetExtensions(ExtensionIdList* out);
220 220
221 // ExtensionScopedPrefs methods: 221 // ExtensionScopedPrefs methods:
222 virtual void UpdateExtensionPref(const std::string& id, 222 virtual void UpdateExtensionPref(const std::string& id,
223 const std::string& key, 223 const std::string& key,
224 base::Value* value) OVERRIDE; 224 base::Value* value) override;
225 225
226 virtual void DeleteExtensionPrefs(const std::string& id) OVERRIDE; 226 virtual void DeleteExtensionPrefs(const std::string& id) override;
227 227
228 virtual bool ReadPrefAsBoolean(const std::string& extension_id, 228 virtual bool ReadPrefAsBoolean(const std::string& extension_id,
229 const std::string& pref_key, 229 const std::string& pref_key,
230 bool* out_value) const OVERRIDE; 230 bool* out_value) const override;
231 231
232 virtual bool ReadPrefAsInteger(const std::string& extension_id, 232 virtual bool ReadPrefAsInteger(const std::string& extension_id,
233 const std::string& pref_key, 233 const std::string& pref_key,
234 int* out_value) const OVERRIDE; 234 int* out_value) const override;
235 235
236 virtual bool ReadPrefAsString(const std::string& extension_id, 236 virtual bool ReadPrefAsString(const std::string& extension_id,
237 const std::string& pref_key, 237 const std::string& pref_key,
238 std::string* out_value) const OVERRIDE; 238 std::string* out_value) const override;
239 239
240 virtual bool ReadPrefAsList(const std::string& extension_id, 240 virtual bool ReadPrefAsList(const std::string& extension_id,
241 const std::string& pref_key, 241 const std::string& pref_key,
242 const base::ListValue** out_value) const OVERRIDE; 242 const base::ListValue** out_value) const override;
243 243
244 virtual bool ReadPrefAsDictionary( 244 virtual bool ReadPrefAsDictionary(
245 const std::string& extension_id, 245 const std::string& extension_id,
246 const std::string& pref_key, 246 const std::string& pref_key,
247 const base::DictionaryValue** out_value) const OVERRIDE; 247 const base::DictionaryValue** out_value) const override;
248 248
249 virtual bool HasPrefForExtension(const std::string& extension_id) const 249 virtual bool HasPrefForExtension(const std::string& extension_id) const
250 OVERRIDE; 250 override;
251 251
252 // Did the extension ask to escalate its permission during an upgrade? 252 // Did the extension ask to escalate its permission during an upgrade?
253 bool DidExtensionEscalatePermissions(const std::string& id); 253 bool DidExtensionEscalatePermissions(const std::string& id);
254 254
255 // If |did_escalate| is true, the preferences for |extension| will be set to 255 // If |did_escalate| is true, the preferences for |extension| will be set to
256 // require the install warning when the user tries to enable. 256 // require the install warning when the user tries to enable.
257 void SetDidExtensionEscalatePermissions( 257 void SetDidExtensionEscalatePermissions(
258 const Extension* extension, 258 const Extension* extension,
259 bool did_escalate); 259 bool did_escalate);
260 260
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 bool extensions_disabled_; 708 bool extensions_disabled_;
709 709
710 ObserverList<ExtensionPrefsObserver> observer_list_; 710 ObserverList<ExtensionPrefsObserver> observer_list_;
711 711
712 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 712 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
713 }; 713 };
714 714
715 } // namespace extensions 715 } // namespace extensions
716 716
717 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 717 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_pref_value_map_factory.h ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698