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

Side by Side Diff: components/user_prefs/tracked/hash_store_contents.h

Issue 1908143002: Convert //components/user_prefs from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore the rightful glory of <windows.h> 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 COMPONENTS_USER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_ 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_
6 #define COMPONENTS_USER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_ 6 #define COMPONENTS_USER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/memory/scoped_ptr.h"
11 11
12 namespace base { 12 namespace base {
13 class DictionaryValue; 13 class DictionaryValue;
14 } // namespace base 14 } // namespace base
15 15
16 // Provides access to the contents of a preference hash store. The store 16 // Provides access to the contents of a preference hash store. The store
17 // contains the following data: 17 // contains the following data:
18 // Contents: a client-defined dictionary that should map preference names to 18 // Contents: a client-defined dictionary that should map preference names to
19 // MACs. 19 // MACs.
20 // Version: a client-defined version number for the format of Contents. 20 // Version: a client-defined version number for the format of Contents.
(...skipping 22 matching lines...) Expand all
43 virtual void Reset() = 0; 43 virtual void Reset() = 0;
44 44
45 // Indicates whether any data is currently stored for this hash store. 45 // Indicates whether any data is currently stored for this hash store.
46 virtual bool IsInitialized() const = 0; 46 virtual bool IsInitialized() const = 0;
47 47
48 // Retrieves the contents of this hash store. May return NULL if the hash 48 // Retrieves the contents of this hash store. May return NULL if the hash
49 // store has not been initialized. 49 // store has not been initialized.
50 virtual const base::DictionaryValue* GetContents() const = 0; 50 virtual const base::DictionaryValue* GetContents() const = 0;
51 51
52 // Provides mutable access to the contents of this hash store. 52 // Provides mutable access to the contents of this hash store.
53 virtual scoped_ptr<MutableDictionary> GetMutableContents() = 0; 53 virtual std::unique_ptr<MutableDictionary> GetMutableContents() = 0;
54 54
55 // Retrieves the super MAC value previously stored by SetSuperMac. May be 55 // Retrieves the super MAC value previously stored by SetSuperMac. May be
56 // empty if no super MAC has been stored. 56 // empty if no super MAC has been stored.
57 virtual std::string GetSuperMac() const = 0; 57 virtual std::string GetSuperMac() const = 0;
58 58
59 // Stores a super MAC value for this hash store. 59 // Stores a super MAC value for this hash store.
60 virtual void SetSuperMac(const std::string& super_mac) = 0; 60 virtual void SetSuperMac(const std::string& super_mac) = 0;
61 }; 61 };
62 62
63 #endif // COMPONENTS_USER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_ 63 #endif // COMPONENTS_USER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698