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

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

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNC_VALUE_STORE_CACHE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNC_VALUE_STORE_CACHE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNC_VALUE_STORE_CACHE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNC_VALUE_STORE_CACHE_H_
7 7
8 #include <memory>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "extensions/browser/api/storage/settings_observer.h" 13 #include "extensions/browser/api/storage/settings_observer.h"
13 #include "extensions/browser/api/storage/value_store_cache.h" 14 #include "extensions/browser/api/storage/value_store_cache.h"
14 #include "sync/api/syncable_service.h" 15 #include "sync/api/syncable_service.h"
15 16
16 namespace base { 17 namespace base {
17 class FilePath; 18 class FilePath;
18 } 19 }
19 20
20 namespace syncer { 21 namespace syncer {
21 class SyncableService; 22 class SyncableService;
(...skipping 20 matching lines...) Expand all
42 const StorageCallback& callback, 43 const StorageCallback& callback,
43 scoped_refptr<const Extension> extension) override; 44 scoped_refptr<const Extension> extension) override;
44 void DeleteStorageSoon(const std::string& extension_id) override; 45 void DeleteStorageSoon(const std::string& extension_id) override;
45 46
46 private: 47 private:
47 void InitOnFileThread(const scoped_refptr<ValueStoreFactory>& factory, 48 void InitOnFileThread(const scoped_refptr<ValueStoreFactory>& factory,
48 const scoped_refptr<SettingsObserverList>& observers, 49 const scoped_refptr<SettingsObserverList>& observers,
49 const base::FilePath& profile_path); 50 const base::FilePath& profile_path);
50 51
51 bool initialized_; 52 bool initialized_;
52 scoped_ptr<SyncStorageBackend> app_backend_; 53 std::unique_ptr<SyncStorageBackend> app_backend_;
53 scoped_ptr<SyncStorageBackend> extension_backend_; 54 std::unique_ptr<SyncStorageBackend> extension_backend_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(SyncValueStoreCache); 56 DISALLOW_COPY_AND_ASSIGN(SyncValueStoreCache);
56 }; 57 };
57 58
58 } // namespace extensions 59 } // namespace extensions
59 60
60 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNC_VALUE_STORE_CACHE_H_ 61 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_SYNC_VALUE_STORE_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698