OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |