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

Unified Diff: components/cryptauth/connection.cc

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/cryptauth/connection.cc
diff --git a/components/proximity_auth/connection.cc b/components/cryptauth/connection.cc
similarity index 90%
rename from components/proximity_auth/connection.cc
rename to components/cryptauth/connection.cc
index b191d5f0fce4440968437a1a340d81e89b2d84f9..21ee01f6d04a6faf770bfe2bcce1a397acf86dcc 100644
--- a/components/proximity_auth/connection.cc
+++ b/components/cryptauth/connection.cc
@@ -2,23 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/proximity_auth/connection.h"
+#include "components/cryptauth/connection.h"
#include <utility>
#include "base/logging.h"
-#include "components/proximity_auth/connection_observer.h"
-#include "components/proximity_auth/wire_message.h"
+#include "components/cryptauth/connection_observer.h"
+#include "components/cryptauth/wire_message.h"
-namespace proximity_auth {
+namespace cryptauth {
Connection::Connection(const cryptauth::RemoteDevice& remote_device)
: remote_device_(remote_device),
status_(DISCONNECTED),
is_sending_message_(false) {}
-Connection::~Connection() {
-}
+Connection::~Connection() {}
bool Connection::IsConnected() const {
return status_ == CONNECTED;
@@ -103,4 +102,4 @@ std::unique_ptr<WireMessage> Connection::DeserializeWireMessage(
return WireMessage::Deserialize(received_bytes_, is_incomplete_message);
}
-} // namespace proximity_auth
+} // namespace cryptauth

Powered by Google App Engine
This is Rietveld 408576698