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

Side by Side Diff: base/prefs/testing_pref_store.h

Issue 81183005: Remove JsonPrefStore pruning of empty values on write. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove else Created 7 years 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
« no previous file with comments | « base/prefs/pref_service.cc ('k') | base/prefs/testing_pref_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 BASE_PREFS_TESTING_PREF_STORE_H_ 5 #ifndef BASE_PREFS_TESTING_PREF_STORE_H_
6 #define BASE_PREFS_TESTING_PREF_STORE_H_ 6 #define BASE_PREFS_TESTING_PREF_STORE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 18 matching lines...) Expand all
29 virtual bool IsInitializationComplete() const OVERRIDE; 29 virtual bool IsInitializationComplete() const OVERRIDE;
30 30
31 // PersistentPrefStore overrides: 31 // PersistentPrefStore overrides:
32 virtual bool GetMutableValue(const std::string& key, 32 virtual bool GetMutableValue(const std::string& key,
33 base::Value** result) OVERRIDE; 33 base::Value** result) OVERRIDE;
34 virtual void ReportValueChanged(const std::string& key) OVERRIDE; 34 virtual void ReportValueChanged(const std::string& key) OVERRIDE;
35 virtual void SetValue(const std::string& key, base::Value* value) OVERRIDE; 35 virtual void SetValue(const std::string& key, base::Value* value) OVERRIDE;
36 virtual void SetValueSilently(const std::string& key, 36 virtual void SetValueSilently(const std::string& key,
37 base::Value* value) OVERRIDE; 37 base::Value* value) OVERRIDE;
38 virtual void RemoveValue(const std::string& key) OVERRIDE; 38 virtual void RemoveValue(const std::string& key) OVERRIDE;
39 virtual void MarkNeedsEmptyValue(const std::string& key) OVERRIDE;
40 virtual bool ReadOnly() const OVERRIDE; 39 virtual bool ReadOnly() const OVERRIDE;
41 virtual PrefReadError GetReadError() const OVERRIDE; 40 virtual PrefReadError GetReadError() const OVERRIDE;
42 virtual PersistentPrefStore::PrefReadError ReadPrefs() OVERRIDE; 41 virtual PersistentPrefStore::PrefReadError ReadPrefs() OVERRIDE;
43 virtual void ReadPrefsAsync(ReadErrorDelegate* error_delegate) OVERRIDE; 42 virtual void ReadPrefsAsync(ReadErrorDelegate* error_delegate) OVERRIDE;
44 virtual void CommitPendingWrite() OVERRIDE {} 43 virtual void CommitPendingWrite() OVERRIDE {}
45 44
46 // Marks the store as having completed initialization. 45 // Marks the store as having completed initialization.
47 void SetInitializationCompleted(); 46 void SetInitializationCompleted();
48 47
49 // Used for tests to trigger notifications explicitly. 48 // Used for tests to trigger notifications explicitly.
(...skipping 25 matching lines...) Expand all
75 74
76 // Whether initialization has been completed. 75 // Whether initialization has been completed.
77 bool init_complete_; 76 bool init_complete_;
78 77
79 ObserverList<PrefStore::Observer, true> observers_; 78 ObserverList<PrefStore::Observer, true> observers_;
80 79
81 DISALLOW_COPY_AND_ASSIGN(TestingPrefStore); 80 DISALLOW_COPY_AND_ASSIGN(TestingPrefStore);
82 }; 81 };
83 82
84 #endif // BASE_PREFS_TESTING_PREF_STORE_H_ 83 #endif // BASE_PREFS_TESTING_PREF_STORE_H_
OLDNEW
« no previous file with comments | « base/prefs/pref_service.cc ('k') | base/prefs/testing_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698