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

Side by Side Diff: chrome/browser/extensions/api/preference/preference_api.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__
6 #define CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__ 6 #define CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 Profile* profile_; 129 Profile* profile_;
130 130
131 // BrowserContextKeyedAPI implementation. 131 // BrowserContextKeyedAPI implementation.
132 static const char* service_name() { 132 static const char* service_name() {
133 return "PreferenceAPI"; 133 return "PreferenceAPI";
134 } 134 }
135 static const bool kServiceIsNULLWhileTesting = true; 135 static const bool kServiceIsNULLWhileTesting = true;
136 static const bool kServiceRedirectedInIncognito = true; 136 static const bool kServiceRedirectedInIncognito = true;
137 137
138 // Created lazily upon OnListenerAdded. 138 // Created lazily upon OnListenerAdded.
139 scoped_ptr<PreferenceEventRouter> preference_event_router_; 139 std::unique_ptr<PreferenceEventRouter> preference_event_router_;
140 140
141 DISALLOW_COPY_AND_ASSIGN(PreferenceAPI); 141 DISALLOW_COPY_AND_ASSIGN(PreferenceAPI);
142 }; 142 };
143 143
144 class PrefTransformerInterface { 144 class PrefTransformerInterface {
145 public: 145 public:
146 virtual ~PrefTransformerInterface() {} 146 virtual ~PrefTransformerInterface() {}
147 147
148 // Converts the representation of a preference as seen by the extension 148 // Converts the representation of a preference as seen by the extension
149 // into a representation that is used in the pref stores of the browser. 149 // into a representation that is used in the pref stores of the browser.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 protected: 212 protected:
213 ~ClearPreferenceFunction() override; 213 ~ClearPreferenceFunction() override;
214 214
215 // ExtensionFunction: 215 // ExtensionFunction:
216 bool RunSync() override; 216 bool RunSync() override;
217 }; 217 };
218 218
219 } // namespace extensions 219 } // namespace extensions
220 220
221 #endif // CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__ 221 #endif // CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698