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

Side by Side Diff: device/bluetooth/bluetooth_device_win.cc

Issue 1292263002: bluetooth: Create base class BluetoothDevice::CreateGattConnection impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-adapter-
Patch Set: fix ProximityAuthBluetoothLowEnergyConnectionTest 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
« no previous file with comments | « device/bluetooth/bluetooth_device_win.h ('k') | device/bluetooth/bluetooth_gatt_connection.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "device/bluetooth/bluetooth_device_win.h" 5 #include "device/bluetooth/bluetooth_device_win.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 141
142 uint32 BluetoothDeviceWin::GetBluetoothClass() const { 142 uint32 BluetoothDeviceWin::GetBluetoothClass() const {
143 return bluetooth_class_; 143 return bluetooth_class_;
144 } 144 }
145 145
146 std::string BluetoothDeviceWin::GetDeviceName() const { 146 std::string BluetoothDeviceWin::GetDeviceName() const {
147 return name_; 147 return name_;
148 } 148 }
149 149
150 void BluetoothDeviceWin::CreateGattConnectionImpl() {
151 // Windows implementation does not use the default CreateGattConnection
152 // implementation.
153 NOTIMPLEMENTED();
154 }
155
156 void BluetoothDeviceWin::DisconnectGatt() {
157 // Windows implementation does not use the default CreateGattConnection
158 // implementation.
159 NOTIMPLEMENTED();
160 }
161
150 std::string BluetoothDeviceWin::GetAddress() const { 162 std::string BluetoothDeviceWin::GetAddress() const {
151 return address_; 163 return address_;
152 } 164 }
153 165
154 BluetoothDevice::VendorIDSource 166 BluetoothDevice::VendorIDSource
155 BluetoothDeviceWin::GetVendorIDSource() const { 167 BluetoothDeviceWin::GetVendorIDSource() const {
156 return VENDOR_ID_UNKNOWN; 168 return VENDOR_ID_UNKNOWN;
157 } 169 }
158 170
159 uint16 BluetoothDeviceWin::GetVendorID() const { 171 uint16 BluetoothDeviceWin::GetVendorID() const {
160 return 0; 172 return 0;
161 } 173 }
162 174
163 uint16 BluetoothDeviceWin::GetProductID() const { 175 uint16 BluetoothDeviceWin::GetProductID() const {
164 return 0; 176 return 0;
165 } 177 }
166 178
167 uint16 BluetoothDeviceWin::GetDeviceID() const { 179 uint16 BluetoothDeviceWin::GetDeviceID() const {
168 return 0; 180 return 0;
169 } 181 }
170 182
171 bool BluetoothDeviceWin::IsPaired() const { 183 bool BluetoothDeviceWin::IsPaired() const {
172 return paired_; 184 return paired_;
173 } 185 }
174 186
175 bool BluetoothDeviceWin::IsConnected() const { 187 bool BluetoothDeviceWin::IsConnected() const {
176 return connected_; 188 return connected_;
177 } 189 }
178 190
191 bool BluetoothDeviceWin::IsGattConnected() const {
192 NOTIMPLEMENTED();
193 return false;
194 }
195
179 bool BluetoothDeviceWin::IsConnectable() const { 196 bool BluetoothDeviceWin::IsConnectable() const {
180 return false; 197 return false;
181 } 198 }
182 199
183 bool BluetoothDeviceWin::IsConnecting() const { 200 bool BluetoothDeviceWin::IsConnecting() const {
184 return false; 201 return false;
185 } 202 }
186 203
187 BluetoothDevice::UUIDList BluetoothDeviceWin::GetUUIDs() const { 204 BluetoothDevice::UUIDList BluetoothDeviceWin::GetUUIDs() const {
188 return uuids_; 205 return uuids_;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 for (ServiceRecordList::const_iterator iter = service_record_list_.begin(); 301 for (ServiceRecordList::const_iterator iter = service_record_list_.begin();
285 iter != service_record_list_.end(); 302 iter != service_record_list_.end();
286 ++iter) { 303 ++iter) {
287 if ((*iter)->uuid() == uuid) 304 if ((*iter)->uuid() == uuid)
288 return *iter; 305 return *iter;
289 } 306 }
290 return NULL; 307 return NULL;
291 } 308 }
292 309
293 } // namespace device 310 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_win.h ('k') | device/bluetooth/bluetooth_gatt_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698