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

Unified Diff: components/proximity_auth/throttled_bluetooth_connection_finder.h

Issue 2561203002: Migrate weave-related classes from proximity_auth/ble to cryptauth/ble. (Closed)
Patch Set: Moved all general classes from proximity_auth to cryptauth. 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 side-by-side diff with in-line comments
Download patch
Index: components/proximity_auth/throttled_bluetooth_connection_finder.h
diff --git a/components/proximity_auth/throttled_bluetooth_connection_finder.h b/components/proximity_auth/throttled_bluetooth_connection_finder.h
index 89c92e30f01e05aa56b5ff443ebd8484683b83f6..95c139fccb2d57bab225a9963a1a8010212adf02 100644
--- a/components/proximity_auth/throttled_bluetooth_connection_finder.h
+++ b/components/proximity_auth/throttled_bluetooth_connection_finder.h
@@ -10,6 +10,8 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
+#include "components/cryptauth/bluetooth_throttler.h"
+#include "components/cryptauth/connection.h"
#include "components/proximity_auth/connection_finder.h"
namespace base {
@@ -19,8 +21,6 @@ class TaskRunner;
namespace proximity_auth {
class BluetoothConnectionFinder;
-class BluetoothThrottler;
-class Connection;
// A Bluetooth connection finder that delays Find() requests according to the
// throttler's cooldown period.
@@ -30,7 +30,7 @@ class ThrottledBluetoothConnectionFinder : public ConnectionFinder {
ThrottledBluetoothConnectionFinder(
std::unique_ptr<BluetoothConnectionFinder> connection_finder,
scoped_refptr<base::TaskRunner> task_runner,
- BluetoothThrottler* throttler);
+ cryptauth::BluetoothThrottler* throttler);
~ThrottledBluetoothConnectionFinder() override;
// ConnectionFinder:
@@ -39,7 +39,7 @@ class ThrottledBluetoothConnectionFinder : public ConnectionFinder {
private:
// Callback to be called when a connection is found.
void OnConnection(const ConnectionCallback& connection_callback,
- std::unique_ptr<Connection> connection);
+ std::unique_ptr<cryptauth::Connection> connection);
// The underlying connection finder.
std::unique_ptr<BluetoothConnectionFinder> connection_finder_;
@@ -49,7 +49,7 @@ class ThrottledBluetoothConnectionFinder : public ConnectionFinder {
// The throttler managing this connection finder. The throttler is not owned,
// and must outlive |this| instance.
- BluetoothThrottler* throttler_;
+ cryptauth::BluetoothThrottler* throttler_;
base::WeakPtrFactory<ThrottledBluetoothConnectionFinder> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698