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

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

Issue 1271043002: bluetooth: Add histograms and logging for getPrimaryService() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-uma-connecta-gatt
Patch Set: Created 5 years, 4 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/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/public/browser/browser_message_filter.h" 10 #include "content/public/browser/browser_message_filter.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const std::string& device_instance_id, 112 const std::string& device_instance_id,
113 base::TimeTicks start_time, 113 base::TimeTicks start_time,
114 device::BluetoothDevice::ConnectErrorCode error_code); 114 device::BluetoothDevice::ConnectErrorCode error_code);
115 115
116 // Callback for future BluetoothAdapter::ServicesDiscovered callback: 116 // Callback for future BluetoothAdapter::ServicesDiscovered callback:
117 // For now we just post a delayed task. 117 // For now we just post a delayed task.
118 // See: https://crbug.com/484504 118 // See: https://crbug.com/484504
119 void OnServicesDiscovered(int thread_id, 119 void OnServicesDiscovered(int thread_id,
120 int request_id, 120 int request_id,
121 const std::string& device_instance_id, 121 const std::string& device_instance_id,
122 const std::string& service_uuid); 122 const std::string& service_uuid,
123 base::TimeTicks start_time);
123 124
124 // Callbacks for BluetoothGattCharacteristic::ReadRemoteCharacteristic. 125 // Callbacks for BluetoothGattCharacteristic::ReadRemoteCharacteristic.
125 void OnCharacteristicValueRead(int thread_id, 126 void OnCharacteristicValueRead(int thread_id,
126 int request_id, 127 int request_id,
127 const std::vector<uint8>& value); 128 const std::vector<uint8>& value);
128 void OnCharacteristicReadValueError( 129 void OnCharacteristicReadValueError(
129 int thread_id, 130 int thread_id,
130 int request_id, 131 int request_id,
131 device::BluetoothGattService::GattErrorCode); 132 device::BluetoothGattService::GattErrorCode);
132 133
(...skipping 25 matching lines...) Expand all
158 159
159 // Must be last member, see base/memory/weak_ptr.h documentation 160 // Must be last member, see base/memory/weak_ptr.h documentation
160 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_; 161 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_;
161 162
162 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost); 163 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost);
163 }; 164 };
164 165
165 } // namespace content 166 } // namespace content
166 167
167 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ 168 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698