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

Side by Side Diff: services/preferences/public/cpp/persistent_pref_store_client.h

Issue 2905903002: Delete the PreferenceMACs on profile deletion. (Closed)
Patch Set: Update comments Created 3 years, 4 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 SERVICES_PREFERENCES_PUBLIC_CPP_PERSISTENT_PREF_STORE_CLIENT_H_ 5 #ifndef SERVICES_PREFERENCES_PUBLIC_CPP_PERSISTENT_PREF_STORE_CLIENT_H_
6 #define SERVICES_PREFERENCES_PUBLIC_CPP_PERSISTENT_PREF_STORE_CLIENT_H_ 6 #define SERVICES_PREFERENCES_PUBLIC_CPP_PERSISTENT_PREF_STORE_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 uint32_t flags) override; 49 uint32_t flags) override;
50 50
51 // PersistentPrefStore: 51 // PersistentPrefStore:
52 bool ReadOnly() const override; 52 bool ReadOnly() const override;
53 PrefReadError GetReadError() const override; 53 PrefReadError GetReadError() const override;
54 PrefReadError ReadPrefs() override; 54 PrefReadError ReadPrefs() override;
55 void ReadPrefsAsync(ReadErrorDelegate* error_delegate) override; 55 void ReadPrefsAsync(ReadErrorDelegate* error_delegate) override;
56 void CommitPendingWrite(base::OnceClosure done_callback) override; 56 void CommitPendingWrite(base::OnceClosure done_callback) override;
57 void SchedulePendingLossyWrites() override; 57 void SchedulePendingLossyWrites() override;
58 void ClearMutableValues() override; 58 void ClearMutableValues() override;
59 void OnStoreDeletionFromDisk() override;
59 60
60 protected: 61 protected:
61 // base::RefCounted<PrefStore>: 62 // base::RefCounted<PrefStore>:
62 ~PersistentPrefStoreClient() override; 63 ~PersistentPrefStoreClient() override;
63 64
64 private: 65 private:
65 class InFlightWriteTrie; 66 class InFlightWriteTrie;
66 struct InFlightWrite; 67 struct InFlightWrite;
67 68
68 void QueueWrite(const std::string& key, 69 void QueueWrite(const std::string& key,
(...skipping 20 matching lines...) Expand all
89 std::map<std::string, InFlightWriteTrie> in_flight_writes_tries_; 90 std::map<std::string, InFlightWriteTrie> in_flight_writes_tries_;
90 91
91 base::WeakPtrFactory<PersistentPrefStoreClient> weak_factory_; 92 base::WeakPtrFactory<PersistentPrefStoreClient> weak_factory_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(PersistentPrefStoreClient); 94 DISALLOW_COPY_AND_ASSIGN(PersistentPrefStoreClient);
94 }; 95 };
95 96
96 } // namespace prefs 97 } // namespace prefs
97 98
98 #endif // SERVICES_PREFERENCES_PUBLIC_CPP_PERSISTENT_PREF_STORE_CLIENT_H_ 99 #endif // SERVICES_PREFERENCES_PUBLIC_CPP_PERSISTENT_PREF_STORE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698