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

Side by Side Diff: components/user_prefs/tracked/interceptable_pref_filter.h

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 COMPONENTS_USER_PREFS_TRACKED_INTERCEPTABLE_PREF_FILTER_H_ 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_INTERCEPTABLE_PREF_FILTER_H_
6 #define COMPONENTS_USER_PREFS_TRACKED_INTERCEPTABLE_PREF_FILTER_H_ 6 #define COMPONENTS_USER_PREFS_TRACKED_INTERCEPTABLE_PREF_FILTER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/prefs/pref_filter.h"
11 #include "base/values.h" 10 #include "base/values.h"
11 #include "components/prefs/pref_filter.h"
12 12
13 // A partial implementation of a PrefFilter whose FilterOnLoad call may be 13 // A partial implementation of a PrefFilter whose FilterOnLoad call may be
14 // intercepted by a FilterOnLoadInterceptor. Implementations of 14 // intercepted by a FilterOnLoadInterceptor. Implementations of
15 // InterceptablePrefFilter are expected to override FinalizeFilterOnLoad rather 15 // InterceptablePrefFilter are expected to override FinalizeFilterOnLoad rather
16 // than re-overriding FilterOnLoad. 16 // than re-overriding FilterOnLoad.
17 class InterceptablePrefFilter 17 class InterceptablePrefFilter
18 : public PrefFilter, 18 : public PrefFilter,
19 public base::SupportsWeakPtr<InterceptablePrefFilter> { 19 public base::SupportsWeakPtr<InterceptablePrefFilter> {
20 public: 20 public:
21 // A callback to be invoked by a FilterOnLoadInterceptor when its ready to 21 // A callback to be invoked by a FilterOnLoadInterceptor when its ready to
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 scoped_ptr<base::DictionaryValue> pref_store_contents, 55 scoped_ptr<base::DictionaryValue> pref_store_contents,
56 bool prefs_altered) = 0; 56 bool prefs_altered) = 0;
57 57
58 // Callback to be invoked only once (and subsequently reset) on the next 58 // Callback to be invoked only once (and subsequently reset) on the next
59 // FilterOnLoad event. It will be allowed to modify the |prefs| handed to 59 // FilterOnLoad event. It will be allowed to modify the |prefs| handed to
60 // FilterOnLoad before handing them back to this PrefHashFilter. 60 // FilterOnLoad before handing them back to this PrefHashFilter.
61 FilterOnLoadInterceptor filter_on_load_interceptor_; 61 FilterOnLoadInterceptor filter_on_load_interceptor_;
62 }; 62 };
63 63
64 #endif // COMPONENTS_USER_PREFS_TRACKED_INTERCEPTABLE_PREF_FILTER_H_ 64 #endif // COMPONENTS_USER_PREFS_TRACKED_INTERCEPTABLE_PREF_FILTER_H_
OLDNEW
« no previous file with comments | « components/user_prefs/tracked/dictionary_hash_store_contents.cc ('k') | components/user_prefs/tracked/pref_hash_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698