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

Side by Side Diff: chrome/browser/chromeos/extensions/input_method_api.h

Issue 1870793002: Convert //chrome/browser/chromeos 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_
7 7
8 #include <memory>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/common/extensions/api/input_method_private.h" 12 #include "chrome/common/extensions/api/input_method_private.h"
12 #include "extensions/browser/browser_context_keyed_api_factory.h" 13 #include "extensions/browser/browser_context_keyed_api_factory.h"
13 #include "extensions/browser/event_router.h" 14 #include "extensions/browser/event_router.h"
14 #include "extensions/browser/extension_function.h" 15 #include "extensions/browser/extension_function.h"
15 16
16 namespace chromeos { 17 namespace chromeos {
17 class ExtensionDictionaryEventRouter; 18 class ExtensionDictionaryEventRouter;
18 class ExtensionInputMethodEventRouter; 19 class ExtensionInputMethodEventRouter;
19 class ExtensionImeMenuEventRouter; 20 class ExtensionImeMenuEventRouter;
20 } 21 }
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 199
199 // BrowserContextKeyedAPI implementation. 200 // BrowserContextKeyedAPI implementation.
200 static const char* service_name() { 201 static const char* service_name() {
201 return "InputMethodAPI"; 202 return "InputMethodAPI";
202 } 203 }
203 static const bool kServiceIsNULLWhileTesting = true; 204 static const bool kServiceIsNULLWhileTesting = true;
204 205
205 content::BrowserContext* const context_; 206 content::BrowserContext* const context_;
206 207
207 // Created lazily upon OnListenerAdded. 208 // Created lazily upon OnListenerAdded.
208 scoped_ptr<chromeos::ExtensionInputMethodEventRouter> 209 std::unique_ptr<chromeos::ExtensionInputMethodEventRouter>
209 input_method_event_router_; 210 input_method_event_router_;
210 scoped_ptr<chromeos::ExtensionDictionaryEventRouter> 211 std::unique_ptr<chromeos::ExtensionDictionaryEventRouter>
211 dictionary_event_router_; 212 dictionary_event_router_;
212 scoped_ptr<chromeos::ExtensionImeMenuEventRouter> ime_menu_event_router_; 213 std::unique_ptr<chromeos::ExtensionImeMenuEventRouter> ime_menu_event_router_;
213 214
214 DISALLOW_COPY_AND_ASSIGN(InputMethodAPI); 215 DISALLOW_COPY_AND_ASSIGN(InputMethodAPI);
215 }; 216 };
216 217
217 } // namespace extensions 218 } // namespace extensions
218 219
219 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_ 220 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/info_private_api.cc ('k') | chrome/browser/chromeos/extensions/input_method_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698