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

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

Issue 13224004: Bluetooth: remove private members from BluetoothAdapter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments Created 7 years, 8 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
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_adapter_win.h" 5 #include "device/bluetooth/bluetooth_adapter_win.h"
6 6
7 #include <hash_set> 7 #include <hash_set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 27 matching lines...) Expand all
38 void BluetoothAdapterWin::AddObserver(BluetoothAdapter::Observer* observer) { 38 void BluetoothAdapterWin::AddObserver(BluetoothAdapter::Observer* observer) {
39 DCHECK(observer); 39 DCHECK(observer);
40 observers_.AddObserver(observer); 40 observers_.AddObserver(observer);
41 } 41 }
42 42
43 void BluetoothAdapterWin::RemoveObserver(BluetoothAdapter::Observer* observer) { 43 void BluetoothAdapterWin::RemoveObserver(BluetoothAdapter::Observer* observer) {
44 DCHECK(observer); 44 DCHECK(observer);
45 observers_.RemoveObserver(observer); 45 observers_.RemoveObserver(observer);
46 } 46 }
47 47
48 std::string BluetoothAdapterWin::address() const {
49 return address_;
50 }
51
52 std::string BluetoothAdapterWin::name() const {
53 return name_;
54 }
55
48 // TODO(youngki): Return true when |task_manager_| initializes the adapter 56 // TODO(youngki): Return true when |task_manager_| initializes the adapter
49 // state. 57 // state.
50 bool BluetoothAdapterWin::IsInitialized() const { 58 bool BluetoothAdapterWin::IsInitialized() const {
51 return initialized_; 59 return initialized_;
52 } 60 }
53 61
54 bool BluetoothAdapterWin::IsPresent() const { 62 bool BluetoothAdapterWin::IsPresent() const {
55 return !address_.empty(); 63 return !address_.empty();
56 } 64 }
57 65
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size(); 269 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size();
262 on_stop_discovery_callbacks_.clear(); 270 on_stop_discovery_callbacks_.clear();
263 return; 271 return;
264 } 272 }
265 273
266 discovery_status_ = DISCOVERY_STOPPING; 274 discovery_status_ = DISCOVERY_STOPPING;
267 task_manager_->PostStopDiscoveryTask(); 275 task_manager_->PostStopDiscoveryTask();
268 } 276 }
269 277
270 } // namespace device 278 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_win.h ('k') | device/bluetooth/test/mock_bluetooth_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698