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

Side by Side Diff: chrome/browser/prefs/tracked/hash_store_contents.h

Issue 205563009: Improve a comment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pp5_base
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PREFS_TRACKED_HASH_STORE_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_
6 #define CHROME_BROWSER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_ 6 #define CHROME_BROWSER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 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. 16 // Provides access to the contents of a preference hash store. The store
17 // contains the following data:
18 // Contents: a client-defined dictionary that should map preference names to
19 // MACs.
20 // Version: a client-defined version number for the format of Contents.
21 // Super MAC: a MAC that authenticates the entirety of Contents.
22 // Legacy hash stores may have an ID that was incorporated into MAC
23 // calculations. The ID, if any, is available via |hash_store_id()|.
17 class HashStoreContents { 24 class HashStoreContents {
18 public: 25 public:
19 // Used to modify a DictionaryValue stored in the preference hash store. The 26 // Used to modify a DictionaryValue stored in the preference hash store. The
20 // MutableDictionary should be destroyed when modifications are complete in 27 // MutableDictionary should be destroyed when modifications are complete in
21 // order to allow them to be committed to the underlying storage. 28 // order to allow them to be committed to the underlying storage.
22 class MutableDictionary { 29 class MutableDictionary {
23 public: 30 public:
24 virtual ~MutableDictionary() {} 31 virtual ~MutableDictionary() {}
25 // Returns the DictionaryValue, which will be created if it does not already 32 // Returns the DictionaryValue, which will be created if it does not already
26 // exist. 33 // exist.
(...skipping 27 matching lines...) Expand all
54 61
55 // Retrieves the super MAC value previously stored by SetSuperMac. May be 62 // Retrieves the super MAC value previously stored by SetSuperMac. May be
56 // empty if no super MAC has been stored. 63 // empty if no super MAC has been stored.
57 virtual std::string GetSuperMac() const = 0; 64 virtual std::string GetSuperMac() const = 0;
58 65
59 // Stores a super MAC value for this hash store. 66 // Stores a super MAC value for this hash store.
60 virtual void SetSuperMac(const std::string& super_mac) = 0; 67 virtual void SetSuperMac(const std::string& super_mac) = 0;
61 }; 68 };
62 69
63 #endif // CHROME_BROWSER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_ 70 #endif // CHROME_BROWSER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698