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

Side by Side Diff: chrome/browser/extensions/api/bluetooth/bluetooth_private_api.h

Issue 401953002: Remove some deprecated methods from the chrome.bluetoothPrivate API header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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
« no previous file with comments | « no previous file | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_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 "chrome/browser/extensions/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"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Set of expected adapter properties to be changed. 70 // Set of expected adapter properties to be changed.
71 std::set<std::string> pending_properties_; 71 std::set<std::string> pending_properties_;
72 72
73 // Set of adapter properties that were not set successfully. 73 // Set of adapter properties that were not set successfully.
74 std::set<std::string> failed_properties_; 74 std::set<std::string> failed_properties_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateSetAdapterStateFunction); 76 DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateSetAdapterStateFunction);
77 }; 77 };
78 78
79 class BluetoothPrivateEnablePairingFunction
80 : public BluetoothExtensionFunction {
81 public:
82 DECLARE_EXTENSION_FUNCTION("bluetoothPrivate.enablePairing",
83 BLUETOOTHPRIVATE_ENABLEPAIRING)
84 BluetoothPrivateEnablePairingFunction();
85 // BluetoothExtensionFunction overrides:
86 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
87
88 private:
89 virtual ~BluetoothPrivateEnablePairingFunction();
90 DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateEnablePairingFunction);
91 };
92
93 class BluetoothPrivateDisablePairingFunction
94 : public BluetoothExtensionFunction {
95 public:
96 DECLARE_EXTENSION_FUNCTION("bluetoothPrivate.disablePairing",
97 BLUETOOTHPRIVATE_DISABLEPAIRING)
98 BluetoothPrivateDisablePairingFunction();
99 // BluetoothExtensionFunction overrides:
100 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
101
102 private:
103 virtual ~BluetoothPrivateDisablePairingFunction();
104 DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateDisablePairingFunction);
105 };
106
107 class BluetoothPrivateSetPairingResponseFunction 79 class BluetoothPrivateSetPairingResponseFunction
108 : public BluetoothExtensionFunction { 80 : public BluetoothExtensionFunction {
109 public: 81 public:
110 DECLARE_EXTENSION_FUNCTION("bluetoothPrivate.setPairingResponse", 82 DECLARE_EXTENSION_FUNCTION("bluetoothPrivate.setPairingResponse",
111 BLUETOOTHPRIVATE_SETPAIRINGRESPONSE) 83 BLUETOOTHPRIVATE_SETPAIRINGRESPONSE)
112 BluetoothPrivateSetPairingResponseFunction(); 84 BluetoothPrivateSetPairingResponseFunction();
113 // BluetoothExtensionFunction overrides: 85 // BluetoothExtensionFunction overrides:
114 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; 86 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
115 87
116 private: 88 private:
117 virtual ~BluetoothPrivateSetPairingResponseFunction(); 89 virtual ~BluetoothPrivateSetPairingResponseFunction();
118 DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateSetPairingResponseFunction); 90 DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateSetPairingResponseFunction);
119 }; 91 };
120 92
121 } // namespace api 93 } // namespace api
122 94
123 } // namespace extensions 95 } // namespace extensions
124 96
125 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ 97 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « no previous file | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698