OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PRIVATE_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ | 6 #define EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h
" | 9 #include "extensions/browser/api/bluetooth/bluetooth_extension_function.h" |
10 #include "extensions/browser/browser_context_keyed_api_factory.h" | 10 #include "extensions/browser/browser_context_keyed_api_factory.h" |
11 #include "extensions/browser/event_router.h" | 11 #include "extensions/browser/event_router.h" |
12 | 12 |
13 namespace device { | 13 namespace device { |
14 class BluetoothAdapter; | 14 class BluetoothAdapter; |
15 } | 15 } |
16 | 16 |
17 namespace extensions { | 17 namespace extensions { |
18 | 18 |
19 class BluetoothApiPairingDelegate; | 19 class BluetoothApiPairingDelegate; |
(...skipping 19 matching lines...) Expand all Loading... |
39 static const char* service_name() { return "BluetoothPrivateAPI"; } | 39 static const char* service_name() { return "BluetoothPrivateAPI"; } |
40 static const bool kServiceRedirectedInIncognito = true; | 40 static const bool kServiceRedirectedInIncognito = true; |
41 static const bool kServiceIsNULLWhileTesting = true; | 41 static const bool kServiceIsNULLWhileTesting = true; |
42 | 42 |
43 private: | 43 private: |
44 friend class BrowserContextKeyedAPIFactory<BluetoothPrivateAPI>; | 44 friend class BrowserContextKeyedAPIFactory<BluetoothPrivateAPI>; |
45 | 45 |
46 content::BrowserContext* browser_context_; | 46 content::BrowserContext* browser_context_; |
47 }; | 47 }; |
48 | 48 |
49 namespace api { | 49 namespace core_api { |
50 | 50 |
51 class BluetoothPrivateSetAdapterStateFunction | 51 class BluetoothPrivateSetAdapterStateFunction |
52 : public BluetoothExtensionFunction { | 52 : public BluetoothExtensionFunction { |
53 public: | 53 public: |
54 DECLARE_EXTENSION_FUNCTION("bluetoothPrivate.setAdapterState", | 54 DECLARE_EXTENSION_FUNCTION("bluetoothPrivate.setAdapterState", |
55 BLUETOOTHPRIVATE_SETADAPTERSTATE) | 55 BLUETOOTHPRIVATE_SETADAPTERSTATE) |
56 BluetoothPrivateSetAdapterStateFunction(); | 56 BluetoothPrivateSetAdapterStateFunction(); |
57 | 57 |
58 private: | 58 private: |
59 virtual ~BluetoothPrivateSetAdapterStateFunction(); | 59 virtual ~BluetoothPrivateSetAdapterStateFunction(); |
(...skipping 23 matching lines...) Expand all Loading... |
83 BLUETOOTHPRIVATE_SETPAIRINGRESPONSE) | 83 BLUETOOTHPRIVATE_SETPAIRINGRESPONSE) |
84 BluetoothPrivateSetPairingResponseFunction(); | 84 BluetoothPrivateSetPairingResponseFunction(); |
85 // BluetoothExtensionFunction overrides: | 85 // BluetoothExtensionFunction overrides: |
86 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; | 86 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; |
87 | 87 |
88 private: | 88 private: |
89 virtual ~BluetoothPrivateSetPairingResponseFunction(); | 89 virtual ~BluetoothPrivateSetPairingResponseFunction(); |
90 DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateSetPairingResponseFunction); | 90 DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateSetPairingResponseFunction); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace api | 93 } // namespace core_api |
94 | 94 |
95 } // namespace extensions | 95 } // namespace extensions |
96 | 96 |
97 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ | 97 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ |
OLD | NEW |