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

Side by Side Diff: extensions/browser/extension_pref_value_map.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_PREF_VALUE_MAP_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual void OnExtensionPrefValueMapDestruction() = 0; 69 virtual void OnExtensionPrefValueMapDestruction() = 0;
70 70
71 protected: 71 protected:
72 virtual ~Observer() {} 72 virtual ~Observer() {}
73 }; 73 };
74 74
75 ExtensionPrefValueMap(); 75 ExtensionPrefValueMap();
76 virtual ~ExtensionPrefValueMap(); 76 virtual ~ExtensionPrefValueMap();
77 77
78 // KeyedService implementation. 78 // KeyedService implementation.
79 virtual void Shutdown() OVERRIDE; 79 virtual void Shutdown() override;
80 80
81 // Set an extension preference |value| for |key| of extension |ext_id|. 81 // Set an extension preference |value| for |key| of extension |ext_id|.
82 // Takes ownership of |value|. 82 // Takes ownership of |value|.
83 // Note that regular extension pref values need to be reported to 83 // Note that regular extension pref values need to be reported to
84 // incognito and to regular ExtensionPrefStores. 84 // incognito and to regular ExtensionPrefStores.
85 // Precondition: the extension must be registered. 85 // Precondition: the extension must be registered.
86 void SetExtensionPref(const std::string& ext_id, 86 void SetExtensionPref(const std::string& ext_id,
87 const std::string& key, 87 const std::string& key,
88 extensions::ExtensionPrefsScope scope, 88 extensions::ExtensionPrefsScope scope,
89 base::Value* value); 89 base::Value* value);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // being destroyed. In tests, it isn't called, so the notification must 196 // being destroyed. In tests, it isn't called, so the notification must
197 // be done in the destructor. This bit tracks whether it has been done yet. 197 // be done in the destructor. This bit tracks whether it has been done yet.
198 bool destroyed_; 198 bool destroyed_;
199 199
200 ObserverList<Observer, true> observers_; 200 ObserverList<Observer, true> observers_;
201 201
202 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefValueMap); 202 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefValueMap);
203 }; 203 };
204 204
205 #endif // EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_ 205 #endif // EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_pref_store.h ('k') | extensions/browser/extension_pref_value_map_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698