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

Side by Side Diff: services/preferences/tracked/segregated_pref_store.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 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 SERVICES_PREFERENCES_TRACKED_SEGREGATED_PREF_STORE_H_ 5 #ifndef SERVICES_PREFERENCES_TRACKED_SEGREGATED_PREF_STORE_H_
6 #define SERVICES_PREFERENCES_TRACKED_SEGREGATED_PREF_STORE_H_ 6 #define SERVICES_PREFERENCES_TRACKED_SEGREGATED_PREF_STORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void ReportValueChanged(const std::string& key, uint32_t flags) override; 67 void ReportValueChanged(const std::string& key, uint32_t flags) override;
68 void SetValueSilently(const std::string& key, 68 void SetValueSilently(const std::string& key,
69 std::unique_ptr<base::Value> value, 69 std::unique_ptr<base::Value> value,
70 uint32_t flags) override; 70 uint32_t flags) override;
71 bool ReadOnly() const override; 71 bool ReadOnly() const override;
72 PrefReadError GetReadError() const override; 72 PrefReadError GetReadError() const override;
73 PrefReadError ReadPrefs() override; 73 PrefReadError ReadPrefs() override;
74 void ReadPrefsAsync(ReadErrorDelegate* error_delegate) override; 74 void ReadPrefsAsync(ReadErrorDelegate* error_delegate) override;
75 void CommitPendingWrite(base::OnceClosure done_callback) override; 75 void CommitPendingWrite(base::OnceClosure done_callback) override;
76 void SchedulePendingLossyWrites() override; 76 void SchedulePendingLossyWrites() override;
77
78 void ClearMutableValues() override; 77 void ClearMutableValues() override;
78 void OnStoreDeletionFromDisk() override;
79 79
80 private: 80 private:
81 // Aggregates events from the underlying stores and synthesizes external 81 // Aggregates events from the underlying stores and synthesizes external
82 // events via |on_initialization|, |read_error_delegate_|, and |observers_|. 82 // events via |on_initialization|, |read_error_delegate_|, and |observers_|.
83 class AggregatingObserver : public PrefStore::Observer { 83 class AggregatingObserver : public PrefStore::Observer {
84 public: 84 public:
85 explicit AggregatingObserver(SegregatedPrefStore* outer); 85 explicit AggregatingObserver(SegregatedPrefStore* outer);
86 86
87 // PrefStore::Observer implementation 87 // PrefStore::Observer implementation
88 void OnPrefValueChanged(const std::string& key) override; 88 void OnPrefValueChanged(const std::string& key) override;
(...skipping 24 matching lines...) Expand all
113 std::set<std::string> selected_preference_names_; 113 std::set<std::string> selected_preference_names_;
114 114
115 std::unique_ptr<PersistentPrefStore::ReadErrorDelegate> read_error_delegate_; 115 std::unique_ptr<PersistentPrefStore::ReadErrorDelegate> read_error_delegate_;
116 base::ObserverList<PrefStore::Observer, true> observers_; 116 base::ObserverList<PrefStore::Observer, true> observers_;
117 AggregatingObserver aggregating_observer_; 117 AggregatingObserver aggregating_observer_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(SegregatedPrefStore); 119 DISALLOW_COPY_AND_ASSIGN(SegregatedPrefStore);
120 }; 120 };
121 121
122 #endif // SERVICES_PREFERENCES_TRACKED_SEGREGATED_PREF_STORE_H_ 122 #endif // SERVICES_PREFERENCES_TRACKED_SEGREGATED_PREF_STORE_H_
OLDNEW
« no previous file with comments | « services/preferences/tracked/pref_hash_filter.cc ('k') | services/preferences/tracked/segregated_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698