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

Side by Side Diff: chrome/browser/ui/webui/options/core_options_handler.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // |controlling_pref_name| controls if |pref_name| is managed by 76 // |controlling_pref_name| controls if |pref_name| is managed by
77 // policy/extension; empty |controlling_pref_name| indicates no other pref is 77 // policy/extension; empty |controlling_pref_name| indicates no other pref is
78 // controlling |pref_name|. 78 // controlling |pref_name|.
79 void NotifyPrefChanged(const std::string& pref_name, 79 void NotifyPrefChanged(const std::string& pref_name,
80 const std::string& controlling_pref_name); 80 const std::string& controlling_pref_name);
81 81
82 // Calls JS callbacks to report a change in the value of the |name| 82 // Calls JS callbacks to report a change in the value of the |name|
83 // preference. |value| is the new value for |name|. Called from 83 // preference. |value| is the new value for |name|. Called from
84 // Notify*Changed methods to fire off the notifications. 84 // Notify*Changed methods to fire off the notifications.
85 void DispatchPrefChangeNotification(const std::string& name, 85 void DispatchPrefChangeNotification(const std::string& name,
86 scoped_ptr<base::Value> value); 86 std::unique_ptr<base::Value> value);
87 87
88 // Creates dictionary value for the pref described by |pref_name|. 88 // Creates dictionary value for the pref described by |pref_name|.
89 // If |controlling_pref| is not empty, it describes the pref that manages 89 // If |controlling_pref| is not empty, it describes the pref that manages
90 // |pref| via policy or extension. 90 // |pref| via policy or extension.
91 virtual base::Value* CreateValueForPref( 91 virtual base::Value* CreateValueForPref(
92 const std::string& pref_name, 92 const std::string& pref_name,
93 const std::string& controlling_pref_name); 93 const std::string& controlling_pref_name);
94 94
95 typedef std::multimap<std::string, std::string> PreferenceCallbackMap; 95 typedef std::multimap<std::string, std::string> PreferenceCallbackMap;
96 PreferenceCallbackMap pref_callback_map_; 96 PreferenceCallbackMap pref_callback_map_;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 typedef std::map<std::string, base::Callback<bool(const base::Value*)> > 181 typedef std::map<std::string, base::Callback<bool(const base::Value*)> >
182 PrefChangeFilterMap; 182 PrefChangeFilterMap;
183 PrefChangeFilterMap pref_change_filters_; 183 PrefChangeFilterMap pref_change_filters_;
184 184
185 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler); 185 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler);
186 }; 186 };
187 187
188 } // namespace options 188 } // namespace options
189 189
190 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_ 190 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/cookies_view_handler.cc ('k') | chrome/browser/ui/webui/options/core_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698