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

Side by Side Diff: chrome/browser/extensions/api/input_ime/input_ime_api.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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_INPUT_IME_INPUT_IME_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 DISALLOW_COPY_AND_ASSIGN(InputImeEventRouter); 71 DISALLOW_COPY_AND_ASSIGN(InputImeEventRouter);
72 }; 72 };
73 73
74 class InputImeEventRouterFactory { 74 class InputImeEventRouterFactory {
75 public: 75 public:
76 static InputImeEventRouterFactory* GetInstance(); 76 static InputImeEventRouterFactory* GetInstance();
77 InputImeEventRouter* GetRouter(Profile* profile); 77 InputImeEventRouter* GetRouter(Profile* profile);
78 78
79 private: 79 private:
80 friend struct DefaultSingletonTraits<InputImeEventRouterFactory>; 80 friend struct base::DefaultSingletonTraits<InputImeEventRouterFactory>;
81 InputImeEventRouterFactory(); 81 InputImeEventRouterFactory();
82 ~InputImeEventRouterFactory(); 82 ~InputImeEventRouterFactory();
83 83
84 std::map<Profile*, InputImeEventRouter*, ProfileCompare> router_map_; 84 std::map<Profile*, InputImeEventRouter*, ProfileCompare> router_map_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(InputImeEventRouterFactory); 86 DISALLOW_COPY_AND_ASSIGN(InputImeEventRouterFactory);
87 }; 87 };
88 88
89 class InputImeSetCompositionFunction : public SyncExtensionFunction { 89 class InputImeSetCompositionFunction : public SyncExtensionFunction {
90 public: 90 public:
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 content::BrowserContext* const browser_context_; 260 content::BrowserContext* const browser_context_;
261 261
262 // Listen to extension load, unloaded notifications. 262 // Listen to extension load, unloaded notifications.
263 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 263 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
264 extension_registry_observer_; 264 extension_registry_observer_;
265 }; 265 };
266 266
267 } // namespace extensions 267 } // namespace extensions
268 268
269 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ 269 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/dial/dial_api_factory.cc ('k') | chrome/browser/extensions/api/input_ime/input_ime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698