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

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

Issue 1917673002: Convert //components/[u-z]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 7 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 <memory>
9
8 #include "base/callback.h" 10 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
11 #include "base/values.h" 12 #include "base/values.h"
12 #include "components/prefs/pref_filter.h" 13 #include "components/prefs/pref_filter.h"
13 14
14 // A partial implementation of a PrefFilter whose FilterOnLoad call may be 15 // A partial implementation of a PrefFilter whose FilterOnLoad call may be
15 // intercepted by a FilterOnLoadInterceptor. Implementations of 16 // intercepted by a FilterOnLoadInterceptor. Implementations of
16 // InterceptablePrefFilter are expected to override FinalizeFilterOnLoad rather 17 // InterceptablePrefFilter are expected to override FinalizeFilterOnLoad rather
17 // than re-overriding FilterOnLoad. 18 // than re-overriding FilterOnLoad.
18 class InterceptablePrefFilter 19 class InterceptablePrefFilter
19 : public PrefFilter, 20 : public PrefFilter,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 std::unique_ptr<base::DictionaryValue> pref_store_contents, 59 std::unique_ptr<base::DictionaryValue> pref_store_contents,
59 bool prefs_altered) = 0; 60 bool prefs_altered) = 0;
60 61
61 // Callback to be invoked only once (and subsequently reset) on the next 62 // Callback to be invoked only once (and subsequently reset) on the next
62 // FilterOnLoad event. It will be allowed to modify the |prefs| handed to 63 // FilterOnLoad event. It will be allowed to modify the |prefs| handed to
63 // FilterOnLoad before handing them back to this PrefHashFilter. 64 // FilterOnLoad before handing them back to this PrefHashFilter.
64 FilterOnLoadInterceptor filter_on_load_interceptor_; 65 FilterOnLoadInterceptor filter_on_load_interceptor_;
65 }; 66 };
66 67
67 #endif // COMPONENTS_USER_PREFS_TRACKED_INTERCEPTABLE_PREF_FILTER_H_ 68 #endif // COMPONENTS_USER_PREFS_TRACKED_INTERCEPTABLE_PREF_FILTER_H_
OLDNEW
« no previous file with comments | « components/user_manager/user_manager_base.cc ('k') | components/variations/entropy_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698