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

Unified Diff: components/proximity_auth/connection_observer.h

Issue 2561203002: Migrate weave-related classes from proximity_auth/ble to cryptauth/ble. (Closed)
Patch Set: Rebase. 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/connection_observer.h
diff --git a/components/proximity_auth/connection_observer.h b/components/proximity_auth/connection_observer.h
deleted file mode 100644
index 7611ee33d225aea65ed58f4976cd35c5fe11408e..0000000000000000000000000000000000000000
--- a/components/proximity_auth/connection_observer.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_PROXIMITY_AUTH_CONNECTION_OBSERVER_H
-#define COMPONENTS_PROXIMITY_AUTH_CONNECTION_OBSERVER_H
-
-#include "components/proximity_auth/connection.h"
-
-namespace proximity_auth {
-
-class WireMessage;
-
-// An interface for observing events that happen on a Connection.
-class ConnectionObserver {
- public:
- virtual ~ConnectionObserver() {}
-
- // Called when the |connection|'s status changes from |old_status| to
- // |new_status|. The |connectoin| is guaranteed to be non-null.
- virtual void OnConnectionStatusChanged(Connection* connection,
- Connection::Status old_status,
- Connection::Status new_status) {}
-
- // Called when a |message| is received from a remote device over the
- // |connection|.
- virtual void OnMessageReceived(const Connection& connection,
- const WireMessage& message) {}
-
- // Called after a |message| is sent to the remote device over the
- // |connection|. |success| is |true| iff the message is sent successfully.
- virtual void OnSendCompleted(const Connection& connection,
- const WireMessage& message,
- bool success) {}
-};
-
-} // namespace proximity_auth
-
-#endif // COMPONENTS_PROXIMITY_AUTH_CONNECTION_OBSERVER_H

Powered by Google App Engine
This is Rietveld 408576698