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

Side by Side Diff: components/prefs/pref_filter.h

Issue 2905903002: Delete the PreferenceMACs on profile deletion. (Closed)
Patch Set: Try loading unloaded profiles before calling OnStoreDeletionFromDisk Created 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_PREFS_PREF_FILTER_H_ 5 #ifndef COMPONENTS_PREFS_PREF_FILTER_H_
6 #define COMPONENTS_PREFS_PREF_FILTER_H_ 6 #define COMPONENTS_PREFS_PREF_FILTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 // Receives notification when the pref store is about to serialize data 52 // Receives notification when the pref store is about to serialize data
53 // contained in |pref_store_contents| to a string. Modifications to 53 // contained in |pref_store_contents| to a string. Modifications to
54 // |pref_store_contents| will be persisted to disk and also affect the 54 // |pref_store_contents| will be persisted to disk and also affect the
55 // in-memory state. 55 // in-memory state.
56 // If the returned callbacks are non-null, they will be registered to be 56 // If the returned callbacks are non-null, they will be registered to be
57 // invoked synchronously after the next write (from the I/O TaskRunner so they 57 // invoked synchronously after the next write (from the I/O TaskRunner so they
58 // must not be bound to thread-unsafe member state). 58 // must not be bound to thread-unsafe member state).
59 virtual OnWriteCallbackPair FilterSerializeData( 59 virtual OnWriteCallbackPair FilterSerializeData(
60 base::DictionaryValue* pref_store_contents) = 0; 60 base::DictionaryValue* pref_store_contents) = 0;
61
62 // Cleans data stored outside of the profile directory.
gab 2017/06/08 16:14:28 ditto
proberge 2017/06/08 18:32:59 Done.
63 virtual void OnStoreDeletionFromDisk() = 0;
61 }; 64 };
62 65
63 #endif // COMPONENTS_PREFS_PREF_FILTER_H_ 66 #endif // COMPONENTS_PREFS_PREF_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698