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

Side by Side Diff: extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h

Issue 1902873002: Convert //extensions/browser/api from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_PRIVATE_VIRTUAL_KEYBOARD_PRIVATE _API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_PRIVATE_VIRTUAL_KEYBOARD_PRIVATE _API_H_
6 #define EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_PRIVATE_VIRTUAL_KEYBOARD_PRIVATE _API_H_ 6 #define EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_PRIVATE_VIRTUAL_KEYBOARD_PRIVATE _API_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "extensions/browser/browser_context_keyed_api_factory.h" 9 #include "extensions/browser/browser_context_keyed_api_factory.h"
10 #include "extensions/browser/extension_function.h" 10 #include "extensions/browser/extension_function.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 private: 159 private:
160 friend class BrowserContextKeyedAPIFactory<VirtualKeyboardAPI>; 160 friend class BrowserContextKeyedAPIFactory<VirtualKeyboardAPI>;
161 161
162 // BrowserContextKeyedAPI implementation. 162 // BrowserContextKeyedAPI implementation.
163 static const char* service_name() { return "VirtualKeyboardAPI"; } 163 static const char* service_name() { return "VirtualKeyboardAPI"; }
164 164
165 // Require accces to delegate while incognito or during login. 165 // Require accces to delegate while incognito or during login.
166 static const bool kServiceHasOwnInstanceInIncognito = true; 166 static const bool kServiceHasOwnInstanceInIncognito = true;
167 167
168 scoped_ptr<VirtualKeyboardDelegate> delegate_; 168 std::unique_ptr<VirtualKeyboardDelegate> delegate_;
169 }; 169 };
170 170
171 } // namespace extensions 171 } // namespace extensions
172 172
173 #endif // EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_PRIVATE_VIRTUAL_KEYBOARD_PRIV ATE_API_H_ 173 #endif // EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_PRIVATE_VIRTUAL_KEYBOARD_PRIV ATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698