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

Side by Side Diff: chromeos/components/tether/ble_advertiser.h

Issue 2697763002: [CrOS Tether]: Create BleConnectionManager, which manages secure connections between the current de… (Closed)
Patch Set: Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROMEOS_COMPONENTS_TETHER_BLE_ADVERTISER_H_ 5 #ifndef CHROMEOS_COMPONENTS_TETHER_BLE_ADVERTISER_H_
6 #define CHROMEOS_COMPONENTS_TETHER_BLE_ADVERTISER_H_ 6 #define CHROMEOS_COMPONENTS_TETHER_BLE_ADVERTISER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 17 matching lines...) Expand all
28 class LocalDeviceDataProvider; 28 class LocalDeviceDataProvider;
29 29
30 class BleAdvertiser { 30 class BleAdvertiser {
31 public: 31 public:
32 BleAdvertiser( 32 BleAdvertiser(
33 scoped_refptr<device::BluetoothAdapter> adapter, 33 scoped_refptr<device::BluetoothAdapter> adapter,
34 const LocalDeviceDataProvider* local_device_data_provider, 34 const LocalDeviceDataProvider* local_device_data_provider,
35 const cryptauth::RemoteBeaconSeedFetcher* remote_beacon_seed_fetcher); 35 const cryptauth::RemoteBeaconSeedFetcher* remote_beacon_seed_fetcher);
36 virtual ~BleAdvertiser(); 36 virtual ~BleAdvertiser();
37 37
38 bool StartAdvertisingToDevice(const cryptauth::RemoteDevice& remote_device); 38 virtual bool StartAdvertisingToDevice(
39 bool StopAdvertisingToDevice(const cryptauth::RemoteDevice& remote_device); 39 const cryptauth::RemoteDevice& remote_device);
40 virtual bool StopAdvertisingToDevice(
41 const cryptauth::RemoteDevice& remote_device);
40 42
41 private: 43 private:
42 friend class BleAdvertiserTest; 44 friend class BleAdvertiserTest;
43 45
44 class IndividualAdvertisement 46 class IndividualAdvertisement
45 : public device::BluetoothAdapter::Observer, 47 : public device::BluetoothAdapter::Observer,
46 public device::BluetoothAdvertisement::Observer, 48 public device::BluetoothAdvertisement::Observer,
47 public base::RefCounted<IndividualAdvertisement> { 49 public base::RefCounted<IndividualAdvertisement> {
48 public: 50 public:
49 IndividualAdvertisement( 51 IndividualAdvertisement(
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 device_id_to_advertisement_map_; 109 device_id_to_advertisement_map_;
108 110
109 DISALLOW_COPY_AND_ASSIGN(BleAdvertiser); 111 DISALLOW_COPY_AND_ASSIGN(BleAdvertiser);
110 }; 112 };
111 113
112 } // namespace tether 114 } // namespace tether
113 115
114 } // namespace chromeos 116 } // namespace chromeos
115 117
116 #endif // CHROMEOS_COMPONENTS_TETHER_BLE_ADVERTISER_H_ 118 #endif // CHROMEOS_COMPONENTS_TETHER_BLE_ADVERTISER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698