OLD | NEW |
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" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 scoped_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 | |
62 // Commit pending writes to this hash store's contents. | |
63 virtual void CommitPendingWrite() = 0; | |
64 }; | 61 }; |
65 | 62 |
66 #endif // CHROME_BROWSER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_ | 63 #endif // CHROME_BROWSER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_ |
OLD | NEW |