Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(893)

Side by Side Diff: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h

Issue 420663003: Extensions: Move bluetooth APIs to extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android, gn Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.h" 12 #include "extensions/browser/api/bluetooth_socket/bluetooth_socket_api.h"
13 #include "extensions/browser/browser_context_keyed_api_factory.h" 13 #include "extensions/browser/browser_context_keyed_api_factory.h"
14 #include "extensions/browser/extension_function.h" 14 #include "extensions/browser/extension_function.h"
15 15
16 // Implementations for chrome.easyUnlockPrivate API functions. 16 // Implementations for chrome.easyUnlockPrivate API functions.
17 17
18 namespace content { 18 namespace content {
19 class BrowserContext; 19 class BrowserContext;
20 } 20 }
21 21
22 namespace extensions { 22 namespace extensions {
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 virtual bool RunAsync() OVERRIDE; 159 virtual bool RunAsync() OVERRIDE;
160 160
161 // Callback that is called when the seek operation succeeds. 161 // Callback that is called when the seek operation succeeds.
162 void OnSeekCompleted(const easy_unlock::SeekDeviceResult& seek_result); 162 void OnSeekCompleted(const easy_unlock::SeekDeviceResult& seek_result);
163 163
164 DISALLOW_COPY_AND_ASSIGN( 164 DISALLOW_COPY_AND_ASSIGN(
165 EasyUnlockPrivateSeekBluetoothDeviceByAddressFunction); 165 EasyUnlockPrivateSeekBluetoothDeviceByAddressFunction);
166 }; 166 };
167 167
168 class EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction 168 class EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction
169 : public BluetoothSocketAbstractConnectFunction { 169 : public core_api::BluetoothSocketAbstractConnectFunction {
170 public: 170 public:
171 DECLARE_EXTENSION_FUNCTION( 171 DECLARE_EXTENSION_FUNCTION(
172 "easyUnlockPrivate.connectToBluetoothServiceInsecurely", 172 "easyUnlockPrivate.connectToBluetoothServiceInsecurely",
173 EASYUNLOCKPRIVATE_CONNECTTOBLUETOOTHSERVICEINSECURELY) 173 EASYUNLOCKPRIVATE_CONNECTTOBLUETOOTHSERVICEINSECURELY)
174 EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction(); 174 EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction();
175 175
176 private: 176 private:
177 virtual ~EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction(); 177 virtual ~EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction();
178 178
179 // BluetoothSocketAbstractConnectFunction: 179 // BluetoothSocketAbstractConnectFunction:
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // SyncExtensionFunction: 274 // SyncExtensionFunction:
275 virtual bool RunSync() OVERRIDE; 275 virtual bool RunSync() OVERRIDE;
276 276
277 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetRemoteDevicesFunction); 277 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetRemoteDevicesFunction);
278 }; 278 };
279 279
280 } // namespace api 280 } // namespace api
281 } // namespace extensions 281 } // namespace extensions
282 282
283 #endif // CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE _API_H_ 283 #endif // CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE _API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698