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

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

Issue 663693002: [Easy Unlock] Port the BluetoothThrottler class to native code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows compilation error, take 2 Created 5 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
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 "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void DelayedPollIfReady(); 57 void DelayedPollIfReady();
58 58
59 // Unregisters |this| instance as an observer from all objects that it might 59 // Unregisters |this| instance as an observer from all objects that it might
60 // have registered with. 60 // have registered with.
61 void UnregisterAsObserver(); 61 void UnregisterAsObserver();
62 62
63 // Callback to be called when the Bluetooth adapter is initialized. 63 // Callback to be called when the Bluetooth adapter is initialized.
64 void OnAdapterInitialized(scoped_refptr<device::BluetoothAdapter> adapter); 64 void OnAdapterInitialized(scoped_refptr<device::BluetoothAdapter> adapter);
65 65
66 // ConnectionObserver: 66 // ConnectionObserver:
67 void OnConnectionStatusChanged(const Connection& connection, 67 void OnConnectionStatusChanged(Connection* connection,
68 Connection::Status old_status, 68 Connection::Status old_status,
69 Connection::Status new_status) override; 69 Connection::Status new_status) override;
70 70
71 // The remote device to connect to. 71 // The remote device to connect to.
72 const RemoteDevice remote_device_; 72 const RemoteDevice remote_device_;
73 73
74 // The UUID of the service on the remote device. 74 // The UUID of the service on the remote device.
75 const device::BluetoothUUID uuid_; 75 const device::BluetoothUUID uuid_;
76 76
77 // The time to wait between polling attempts. 77 // The time to wait between polling attempts.
(...skipping 20 matching lines...) Expand all
98 DISALLOW_COPY_AND_ASSIGN(BluetoothConnectionFinder); 98 DISALLOW_COPY_AND_ASSIGN(BluetoothConnectionFinder);
99 }; 99 };
100 100
101 // TODO(isherman): Make sure to wire up the controller to listen for screen lock 101 // TODO(isherman): Make sure to wire up the controller to listen for screen lock
102 // state change events, and create or destroy the connection finder as 102 // state change events, and create or destroy the connection finder as
103 // appropriate. 103 // appropriate.
104 104
105 } // namespace proximity_auth 105 } // namespace proximity_auth
106 106
107 #endif // COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_CONNECTION_FINDER_H 107 #endif // COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_CONNECTION_FINDER_H
OLDNEW
« no previous file with comments | « components/proximity_auth/BUILD.gn ('k') | components/proximity_auth/bluetooth_connection_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698