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

Side by Side Diff: content/browser/bluetooth/bluetooth_dispatcher_host.h

Issue 1315093002: Implement a bluetooth picker dialog for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused member Created 5 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
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 CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 int thread_id, 142 int thread_id,
143 int request_id, 143 int request_id,
144 device::BluetoothGattService::GattErrorCode); 144 device::BluetoothGattService::GattErrorCode);
145 145
146 // Callbacks for BluetoothGattCharacteristic::WriteRemoteCharacteristic. 146 // Callbacks for BluetoothGattCharacteristic::WriteRemoteCharacteristic.
147 void OnWriteValueSuccess(int thread_id, int request_id); 147 void OnWriteValueSuccess(int thread_id, int request_id);
148 void OnWriteValueFailed(int thread_id, 148 void OnWriteValueFailed(int thread_id,
149 int request_id, 149 int request_id,
150 device::BluetoothGattService::GattErrorCode); 150 device::BluetoothGattService::GattErrorCode);
151 151
152 // Show help pages from the chooser dialog.
153 void ShowBluetoothOverviewLink();
154 void ShowBluetoothPairingLink();
155 void ShowBluetoothAdapterOffLink();
156
152 int render_process_id_; 157 int render_process_id_;
153 158
154 // Maps a (thread_id,request_id) to information about its requestDevice call, 159 // Maps a (thread_id,request_id) to information about its requestDevice call,
155 // including the chooser dialog. 160 // including the chooser dialog.
156 // An entry is added to this map in OnRequestDevice, and should be removed 161 // An entry is added to this map in OnRequestDevice, and should be removed
157 // again everywhere a requestDevice() reply is sent. 162 // again everywhere a requestDevice() reply is sent.
158 IDMap<RequestDeviceSession, IDMapOwnPointer> request_device_sessions_; 163 IDMap<RequestDeviceSession, IDMapOwnPointer> request_device_sessions_;
159 164
160 // Maps to get the object's parent based on it's instanceID 165 // Maps to get the object's parent based on it's instanceID
161 // Map of service_instance_id to device_instance_id. 166 // Map of service_instance_id to device_instance_id.
(...skipping 16 matching lines...) Expand all
178 183
179 // Must be last member, see base/memory/weak_ptr.h documentation 184 // Must be last member, see base/memory/weak_ptr.h documentation
180 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_; 185 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_;
181 186
182 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost); 187 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost);
183 }; 188 };
184 189
185 } // namespace content 190 } // namespace content
186 191
187 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ 192 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698