| 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 EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_EXTENSION_FUNCTION_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_EXTENSION_FUNCTION_H_ |
| 6 #define EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_EXTENSION_FUNCTION_H_ | 6 #define EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_EXTENSION_FUNCTION_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 10 #include "extensions/browser/extension_function.h" | 11 #include "extensions/browser/extension_function.h" |
| 11 | 12 |
| 12 namespace device { | 13 namespace device { |
| 13 | 14 |
| 14 class BluetoothAdapter; | 15 class BluetoothAdapter; |
| 15 | 16 |
| 16 } // namespace device | 17 } // namespace device |
| 17 | 18 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 41 // automatically on the UI thread once |adapter| has been initialized. | 42 // automatically on the UI thread once |adapter| has been initialized. |
| 42 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) = 0; | 43 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) = 0; |
| 43 | 44 |
| 44 DISALLOW_COPY_AND_ASSIGN(BluetoothExtensionFunction); | 45 DISALLOW_COPY_AND_ASSIGN(BluetoothExtensionFunction); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 } // namespace api | 48 } // namespace api |
| 48 } // namespace extensions | 49 } // namespace extensions |
| 49 | 50 |
| 50 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_EXTENSION_FUNCTION_H_ | 51 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_EXTENSION_FUNCTION_H_ |
| OLD | NEW |