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

Side by Side Diff: android_webview/browser/aw_pref_store.h

Issue 1148323005: Add the ability to schedule any pending lossy prefs to be written. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback Created 5 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
« no previous file with comments | « no previous file | base/prefs/json_pref_store.h » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 26 matching lines...) Expand all
37 uint32 flags) override; 37 uint32 flags) override;
38 void SetValueSilently(const std::string& key, 38 void SetValueSilently(const std::string& key,
39 base::Value* value, 39 base::Value* value,
40 uint32 flags) override; 40 uint32 flags) override;
41 void RemoveValue(const std::string& key, uint32 flags) override; 41 void RemoveValue(const std::string& key, uint32 flags) override;
42 bool ReadOnly() const override; 42 bool ReadOnly() const override;
43 PrefReadError GetReadError() const override; 43 PrefReadError GetReadError() const override;
44 PersistentPrefStore::PrefReadError ReadPrefs() override; 44 PersistentPrefStore::PrefReadError ReadPrefs() override;
45 void ReadPrefsAsync(ReadErrorDelegate* error_delegate) override; 45 void ReadPrefsAsync(ReadErrorDelegate* error_delegate) override;
46 void CommitPendingWrite() override {} 46 void CommitPendingWrite() override {}
47 void SchedulePendingLossyWrites() override {}
47 48
48 protected: 49 protected:
49 ~AwPrefStore() override; 50 ~AwPrefStore() override;
50 51
51 private: 52 private:
52 // Stores the preference values. 53 // Stores the preference values.
53 PrefValueMap prefs_; 54 PrefValueMap prefs_;
54 55
55 ObserverList<PrefStore::Observer, true> observers_; 56 ObserverList<PrefStore::Observer, true> observers_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(AwPrefStore); 58 DISALLOW_COPY_AND_ASSIGN(AwPrefStore);
58 }; 59 };
59 60
60 #endif // ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_ 61 #endif // ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_
OLDNEW
« no previous file with comments | « no previous file | base/prefs/json_pref_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698