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

Side by Side Diff: chrome/browser/extensions/api/storage/syncable_settings_storage.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_SYNCABLE_SETTINGS_STORAGE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNCABLE_SETTINGS_STORAGE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNCABLE_SETTINGS_STORAGE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNCABLE_SETTINGS_STORAGE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 16 matching lines...) Expand all
27 const scoped_refptr<SettingsObserverList>& observers, 27 const scoped_refptr<SettingsObserverList>& observers,
28 const std::string& extension_id, 28 const std::string& extension_id,
29 // Ownership taken. 29 // Ownership taken.
30 ValueStore* delegate, 30 ValueStore* delegate,
31 syncer::ModelType sync_type, 31 syncer::ModelType sync_type,
32 const syncer::SyncableService::StartSyncFlare& flare); 32 const syncer::SyncableService::StartSyncFlare& flare);
33 33
34 virtual ~SyncableSettingsStorage(); 34 virtual ~SyncableSettingsStorage();
35 35
36 // ValueStore implementation. 36 // ValueStore implementation.
37 virtual size_t GetBytesInUse(const std::string& key) OVERRIDE; 37 virtual size_t GetBytesInUse(const std::string& key) override;
38 virtual size_t GetBytesInUse(const std::vector<std::string>& keys) OVERRIDE; 38 virtual size_t GetBytesInUse(const std::vector<std::string>& keys) override;
39 virtual size_t GetBytesInUse() OVERRIDE; 39 virtual size_t GetBytesInUse() override;
40 virtual ReadResult Get(const std::string& key) OVERRIDE; 40 virtual ReadResult Get(const std::string& key) override;
41 virtual ReadResult Get(const std::vector<std::string>& keys) OVERRIDE; 41 virtual ReadResult Get(const std::vector<std::string>& keys) override;
42 virtual ReadResult Get() OVERRIDE; 42 virtual ReadResult Get() override;
43 virtual WriteResult Set( 43 virtual WriteResult Set(
44 WriteOptions options, 44 WriteOptions options,
45 const std::string& key, 45 const std::string& key,
46 const base::Value& value) OVERRIDE; 46 const base::Value& value) override;
47 virtual WriteResult Set( 47 virtual WriteResult Set(
48 WriteOptions options, const base::DictionaryValue& values) OVERRIDE; 48 WriteOptions options, const base::DictionaryValue& values) override;
49 virtual WriteResult Remove(const std::string& key) OVERRIDE; 49 virtual WriteResult Remove(const std::string& key) override;
50 virtual WriteResult Remove(const std::vector<std::string>& keys) OVERRIDE; 50 virtual WriteResult Remove(const std::vector<std::string>& keys) override;
51 virtual WriteResult Clear() OVERRIDE; 51 virtual WriteResult Clear() override;
52 virtual bool Restore() OVERRIDE; 52 virtual bool Restore() override;
53 virtual bool RestoreKey(const std::string& key) OVERRIDE; 53 virtual bool RestoreKey(const std::string& key) override;
54 54
55 // Sync-related methods, analogous to those on SyncableService (handled by 55 // Sync-related methods, analogous to those on SyncableService (handled by
56 // ExtensionSettings), but with looser guarantees about when the methods 56 // ExtensionSettings), but with looser guarantees about when the methods
57 // can be called. 57 // can be called.
58 58
59 // Must only be called if sync isn't already active. 59 // Must only be called if sync isn't already active.
60 syncer::SyncError StartSyncing( 60 syncer::SyncError StartSyncing(
61 const base::DictionaryValue& sync_state, 61 const base::DictionaryValue& sync_state,
62 scoped_ptr<SettingsSyncProcessor> sync_processor); 62 scoped_ptr<SettingsSyncProcessor> sync_processor);
63 63
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 const syncer::ModelType sync_type_; 111 const syncer::ModelType sync_type_;
112 const syncer::SyncableService::StartSyncFlare flare_; 112 const syncer::SyncableService::StartSyncFlare flare_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(SyncableSettingsStorage); 114 DISALLOW_COPY_AND_ASSIGN(SyncableSettingsStorage);
115 }; 115 };
116 116
117 } // namespace extensions 117 } // namespace extensions
118 118
119 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNCABLE_SETTINGS_STORAGE_H_ 119 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNCABLE_SETTINGS_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698