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

Side by Side Diff: components/proximity_auth/bluetooth_connection_finder.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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 COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_CONNECTION_FINDER_H 5 #ifndef COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_CONNECTION_FINDER_H
6 #define COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_CONNECTION_FINDER_H 6 #define COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_CONNECTION_FINDER_H
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "components/proximity_auth/bluetooth_util.h" 15 #include "components/proximity_auth/bluetooth_util.h"
16 #include "components/proximity_auth/connection_finder.h" 16 #include "components/proximity_auth/connection_finder.h"
17 #include "components/proximity_auth/connection_observer.h" 17 #include "components/proximity_auth/connection_observer.h"
18 #include "components/proximity_auth/remote_device.h" 18 #include "components/proximity_auth/remote_device.h"
19 #include "device/bluetooth/bluetooth_adapter.h" 19 #include "device/bluetooth/bluetooth_adapter.h"
20 #include "device/bluetooth/bluetooth_uuid.h" 20 #include "device/bluetooth/bluetooth_uuid.h"
21 21
22 namespace proximity_auth { 22 namespace proximity_auth {
23 23
24 class BluetoothConnection;
25
26 // This ConnectionFinder implementation tries to find a Bluetooth connection to 24 // This ConnectionFinder implementation tries to find a Bluetooth connection to
27 // the remote device by polling at a fixed interval. 25 // the remote device by polling at a fixed interval.
28 class BluetoothConnectionFinder : public ConnectionFinder, 26 class BluetoothConnectionFinder : public ConnectionFinder,
29 public ConnectionObserver, 27 public ConnectionObserver,
30 public device::BluetoothAdapter::Observer { 28 public device::BluetoothAdapter::Observer {
31 public: 29 public:
32 BluetoothConnectionFinder(const RemoteDevice& remote_device, 30 BluetoothConnectionFinder(const RemoteDevice& remote_device,
33 const device::BluetoothUUID& uuid, 31 const device::BluetoothUUID& uuid,
34 const base::TimeDelta& polling_interval); 32 const base::TimeDelta& polling_interval);
35 ~BluetoothConnectionFinder() override; 33 ~BluetoothConnectionFinder() override;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 DISALLOW_COPY_AND_ASSIGN(BluetoothConnectionFinder); 115 DISALLOW_COPY_AND_ASSIGN(BluetoothConnectionFinder);
118 }; 116 };
119 117
120 // TODO(isherman): Make sure to wire up the controller to listen for screen lock 118 // TODO(isherman): Make sure to wire up the controller to listen for screen lock
121 // state change events, and create or destroy the connection finder as 119 // state change events, and create or destroy the connection finder as
122 // appropriate. 120 // appropriate.
123 121
124 } // namespace proximity_auth 122 } // namespace proximity_auth
125 123
126 #endif // COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_CONNECTION_FINDER_H 124 #endif // COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_CONNECTION_FINDER_H
OLDNEW
« no previous file with comments | « components/previews/core/previews_opt_out_store.h ('k') | components/proximity_auth/remote_device_life_cycle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698