| 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_BLUETOOTH_BLUETOOTH_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // Convenience method to get the BluetoothAPI for a profile. | 41 // Convenience method to get the BluetoothAPI for a profile. |
| 42 static BluetoothAPI* Get(content::BrowserContext* context); | 42 static BluetoothAPI* Get(content::BrowserContext* context); |
| 43 | 43 |
| 44 static BrowserContextKeyedAPIFactory<BluetoothAPI>* GetFactoryInstance(); | 44 static BrowserContextKeyedAPIFactory<BluetoothAPI>* GetFactoryInstance(); |
| 45 | 45 |
| 46 explicit BluetoothAPI(content::BrowserContext* context); | 46 explicit BluetoothAPI(content::BrowserContext* context); |
| 47 virtual ~BluetoothAPI(); | 47 virtual ~BluetoothAPI(); |
| 48 | 48 |
| 49 ExtensionBluetoothEventRouter* bluetooth_event_router(); | 49 ExtensionBluetoothEventRouter* bluetooth_event_router(); |
| 50 | 50 |
| 51 // BrowserContextKeyedService implementation. | 51 // KeyedService implementation. |
| 52 virtual void Shutdown() OVERRIDE; | 52 virtual void Shutdown() OVERRIDE; |
| 53 | 53 |
| 54 // EventRouter::Observer implementation. | 54 // EventRouter::Observer implementation. |
| 55 virtual void OnListenerAdded(const EventListenerInfo& details) OVERRIDE; | 55 virtual void OnListenerAdded(const EventListenerInfo& details) OVERRIDE; |
| 56 virtual void OnListenerRemoved(const EventListenerInfo& details) OVERRIDE; | 56 virtual void OnListenerRemoved(const EventListenerInfo& details) OVERRIDE; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 friend class BrowserContextKeyedAPIFactory<BluetoothAPI>; | 59 friend class BrowserContextKeyedAPIFactory<BluetoothAPI>; |
| 60 | 60 |
| 61 // BrowserContextKeyedAPI implementation. | 61 // BrowserContextKeyedAPI implementation. |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 | 276 |
| 277 private: | 277 private: |
| 278 void OnSuccessCallback(); | 278 void OnSuccessCallback(); |
| 279 void OnErrorCallback(); | 279 void OnErrorCallback(); |
| 280 }; | 280 }; |
| 281 | 281 |
| 282 } // namespace api | 282 } // namespace api |
| 283 } // namespace extensions | 283 } // namespace extensions |
| 284 | 284 |
| 285 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ | 285 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ |
| OLD | NEW |