| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 class InputImeAPI : public BrowserContextKeyedAPI, | 172 class InputImeAPI : public BrowserContextKeyedAPI, |
| 173 public ExtensionRegistryObserver, | 173 public ExtensionRegistryObserver, |
| 174 public EventRouter::Observer, | 174 public EventRouter::Observer, |
| 175 public content::NotificationObserver { | 175 public content::NotificationObserver { |
| 176 public: | 176 public: |
| 177 explicit InputImeAPI(content::BrowserContext* context); | 177 explicit InputImeAPI(content::BrowserContext* context); |
| 178 ~InputImeAPI() override; | 178 ~InputImeAPI() override; |
| 179 | 179 |
| 180 // BrowserContextKeyedAPI implementation. | 180 // BrowserContextKeyedAPI implementation. |
| 181 static BrowserContextKeyedAPIFactory<InputImeAPI>* GetFactoryInstance(); | 181 static BrowserContextKeyedAPIFactory<InputImeAPI>* GetFactoryInstance(); |
| 182 void Shutdown() override; |
| 182 | 183 |
| 183 // ExtensionRegistryObserver implementation. | 184 // ExtensionRegistryObserver implementation. |
| 184 void OnExtensionLoaded(content::BrowserContext* browser_context, | 185 void OnExtensionLoaded(content::BrowserContext* browser_context, |
| 185 const Extension* extension) override; | 186 const Extension* extension) override; |
| 186 void OnExtensionUnloaded(content::BrowserContext* browser_context, | 187 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
| 187 const Extension* extension, | 188 const Extension* extension, |
| 188 UnloadedExtensionInfo::Reason reason) override; | 189 UnloadedExtensionInfo::Reason reason) override; |
| 189 | 190 |
| 190 // EventRouter::Observer implementation. | 191 // EventRouter::Observer implementation. |
| 191 void OnListenerAdded(const EventListenerInfo& details) override; | 192 void OnListenerAdded(const EventListenerInfo& details) override; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 212 extension_registry_observer_; | 213 extension_registry_observer_; |
| 213 | 214 |
| 214 content::NotificationRegistrar registrar_; | 215 content::NotificationRegistrar registrar_; |
| 215 }; | 216 }; |
| 216 | 217 |
| 217 InputImeEventRouter* GetInputImeEventRouter(Profile* profile); | 218 InputImeEventRouter* GetInputImeEventRouter(Profile* profile); |
| 218 | 219 |
| 219 } // namespace extensions | 220 } // namespace extensions |
| 220 | 221 |
| 221 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ | 222 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ |
| OLD | NEW |