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

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

Issue 329093003: Remove unloaded profile hash store initialization, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove more code. Created 6 years, 6 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 | Annotate | Revision Log
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"
(...skipping 27 matching lines...) Expand all
38 38
39 // Returns the hash-store ID. May be empty. 39 // Returns the hash-store ID. May be empty.
40 virtual std::string hash_store_id() const = 0; 40 virtual std::string hash_store_id() const = 0;
41 41
42 // Discards all data related to this hash store. 42 // Discards all data related to this hash store.
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 a version number previously associated with this hash store via
49 // SetVersion. Returns false if no version number has been stored.
50 virtual bool GetVersion(int* version) const = 0;
51
52 // Associates a version number wih this hash store.
53 virtual void SetVersion(int version) = 0;
54
55 // 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
56 // store has not been initialized. 49 // store has not been initialized.
57 virtual const base::DictionaryValue* GetContents() const = 0; 50 virtual const base::DictionaryValue* GetContents() const = 0;
58 51
59 // Provides mutable access to the contents of this hash store. 52 // Provides mutable access to the contents of this hash store.
60 virtual scoped_ptr<MutableDictionary> GetMutableContents() = 0; 53 virtual scoped_ptr<MutableDictionary> GetMutableContents() = 0;
61 54
62 // Retrieves the super MAC value previously stored by SetSuperMac. May be 55 // Retrieves the super MAC value previously stored by SetSuperMac. May be
63 // empty if no super MAC has been stored. 56 // empty if no super MAC has been stored.
64 virtual std::string GetSuperMac() const = 0; 57 virtual std::string GetSuperMac() const = 0;
65 58
66 // Stores a super MAC value for this hash store. 59 // Stores a super MAC value for this hash store.
67 virtual void SetSuperMac(const std::string& super_mac) = 0; 60 virtual void SetSuperMac(const std::string& super_mac) = 0;
68 61
69 // Commit pending writes to this hash store's contents. 62 // Commit pending writes to this hash store's contents.
70 virtual void CommitPendingWrite() = 0; 63 virtual void CommitPendingWrite() = 0;
71 }; 64 };
72 65
73 #endif // CHROME_BROWSER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_ 66 #endif // CHROME_BROWSER_PREFS_TRACKED_HASH_STORE_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698