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

Side by Side Diff: chrome/browser/extensions/api/storage/policy_value_store.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/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 (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 #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_POLICY_VALUE_STORE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_POLICY_VALUE_STORE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_POLICY_VALUE_STORE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_POLICY_VALUE_STORE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 virtual ~PolicyValueStore(); 33 virtual ~PolicyValueStore();
34 34
35 // Stores |policy| in the persistent database represented by the |delegate_| 35 // Stores |policy| in the persistent database represented by the |delegate_|
36 // and notifies observers with the changes from the previous policy. 36 // and notifies observers with the changes from the previous policy.
37 void SetCurrentPolicy(const policy::PolicyMap& policy); 37 void SetCurrentPolicy(const policy::PolicyMap& policy);
38 38
39 // Clears all the stored data and deletes the database. 39 // Clears all the stored data and deletes the database.
40 void DeleteStorage(); 40 void DeleteStorage();
41 41
42 // ValueStore implementation: 42 // ValueStore implementation:
43 virtual size_t GetBytesInUse(const std::string& key) OVERRIDE; 43 virtual size_t GetBytesInUse(const std::string& key) override;
44 virtual size_t GetBytesInUse(const std::vector<std::string>& keys) OVERRIDE; 44 virtual size_t GetBytesInUse(const std::vector<std::string>& keys) override;
45 virtual size_t GetBytesInUse() OVERRIDE; 45 virtual size_t GetBytesInUse() override;
46 virtual ReadResult Get(const std::string& key) OVERRIDE; 46 virtual ReadResult Get(const std::string& key) override;
47 virtual ReadResult Get(const std::vector<std::string>& keys) OVERRIDE; 47 virtual ReadResult Get(const std::vector<std::string>& keys) override;
48 virtual ReadResult Get() OVERRIDE; 48 virtual ReadResult Get() override;
49 virtual WriteResult Set( 49 virtual WriteResult Set(
50 WriteOptions options, 50 WriteOptions options,
51 const std::string& key, 51 const std::string& key,
52 const base::Value& value) OVERRIDE; 52 const base::Value& value) override;
53 virtual WriteResult Set( 53 virtual WriteResult Set(
54 WriteOptions options, const base::DictionaryValue& values) OVERRIDE; 54 WriteOptions options, const base::DictionaryValue& values) override;
55 virtual WriteResult Remove(const std::string& key) OVERRIDE; 55 virtual WriteResult Remove(const std::string& key) override;
56 virtual WriteResult Remove(const std::vector<std::string>& keys) OVERRIDE; 56 virtual WriteResult Remove(const std::vector<std::string>& keys) override;
57 virtual WriteResult Clear() OVERRIDE; 57 virtual WriteResult Clear() override;
58 // Hopefully, as a Read-Only database, there is no reason to use these. 58 // Hopefully, as a Read-Only database, there is no reason to use these.
59 virtual bool Restore() OVERRIDE; 59 virtual bool Restore() override;
60 virtual bool RestoreKey(const std::string& key) OVERRIDE; 60 virtual bool RestoreKey(const std::string& key) override;
61 61
62 // For unit tests. 62 // For unit tests.
63 ValueStore* delegate() { return delegate_.get(); } 63 ValueStore* delegate() { return delegate_.get(); }
64 64
65 private: 65 private:
66 std::string extension_id_; 66 std::string extension_id_;
67 scoped_refptr<SettingsObserverList> observers_; 67 scoped_refptr<SettingsObserverList> observers_;
68 scoped_ptr<ValueStore> delegate_; 68 scoped_ptr<ValueStore> delegate_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(PolicyValueStore); 70 DISALLOW_COPY_AND_ASSIGN(PolicyValueStore);
71 }; 71 };
72 72
73 } // namespace extensions 73 } // namespace extensions
74 74
75 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_POLICY_VALUE_STORE_H_ 75 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_POLICY_VALUE_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698