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

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

Issue 1341103004: Handle change of BLE address after pairing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ***ADDED BY MISTAKE, OMMIT *** Created 5 years, 2 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const std::string& device_id); 112 const std::string& device_id);
113 113
114 // The chooser implementation yields to the event loop to avoid re-entering 114 // The chooser implementation yields to the event loop to avoid re-entering
115 // code that's still using the RequestDeviceSession, and continues with this 115 // code that's still using the RequestDeviceSession, and continues with this
116 // function. 116 // function.
117 void FinishClosingChooser(int chooser_id, 117 void FinishClosingChooser(int chooser_id,
118 BluetoothChooser::Event event, 118 BluetoothChooser::Event event,
119 const std::string& device_id); 119 const std::string& device_id);
120 120
121 // Callbacks for BluetoothDevice::CreateGattConnection. 121 // Callbacks for BluetoothDevice::CreateGattConnection.
122 void OnGATTConnectionCreated( 122 void OnGATTConnectionCreated(int thread_id,
123 int thread_id, 123 int request_id,
124 int request_id, 124 const std::string& device_instance_id,
125 const std::string& device_instance_id, 125 base::TimeTicks start_time);
126 base::TimeTicks start_time,
127 scoped_ptr<device::BluetoothGattConnection> connection);
128 void OnCreateGATTConnectionError( 126 void OnCreateGATTConnectionError(
129 int thread_id, 127 int thread_id,
130 int request_id, 128 int request_id,
131 const std::string& device_instance_id, 129 const std::string& device_instance_id,
132 base::TimeTicks start_time, 130 base::TimeTicks start_time,
133 device::BluetoothDevice::ConnectErrorCode error_code); 131 device::BluetoothDevice::ConnectErrorCode error_code);
134 132
135 // Callback for future BluetoothAdapter::ServicesDiscovered callback: 133 // Callback for future BluetoothAdapter::ServicesDiscovered callback:
136 // For now we just post a delayed task. 134 // For now we just post a delayed task.
137 // See: https://crbug.com/484504 135 // See: https://crbug.com/484504
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 187
190 // Must be last member, see base/memory/weak_ptr.h documentation 188 // Must be last member, see base/memory/weak_ptr.h documentation
191 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_; 189 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_;
192 190
193 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost); 191 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost);
194 }; 192 };
195 193
196 } // namespace content 194 } // namespace content
197 195
198 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ 196 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698