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

Side by Side Diff: components/cryptauth/connection.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 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_CONNECTION_H 5 #ifndef COMPONENTS_CRYPTAUTH_CONNECTION_H
6 #define COMPONENTS_PROXIMITY_AUTH_CONNECTION_H 6 #define COMPONENTS_CRYPTAUTH_CONNECTION_H
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "components/cryptauth/remote_device.h" 13 #include "components/cryptauth/remote_device.h"
14 14
15 namespace proximity_auth { 15 namespace cryptauth {
16 16
17 class ConnectionObserver; 17 class ConnectionObserver;
18 class WireMessage; 18 class WireMessage;
19 19
20 // Base class representing a connection with a remote device, which is a 20 // Base class representing a connection with a remote device, which is a
21 // persistent bidirectional channel for sending and receiving wire messages. 21 // persistent bidirectional channel for sending and receiving wire messages.
22 class Connection { 22 class Connection {
23 public: 23 public:
24 enum Status { 24 enum Status {
25 DISCONNECTED, 25 DISCONNECTED,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // A temporary buffer storing bytes received before a received message can be 105 // A temporary buffer storing bytes received before a received message can be
106 // fully constructed. 106 // fully constructed.
107 std::string received_bytes_; 107 std::string received_bytes_;
108 108
109 // Whether a message is currently in the process of being sent. 109 // Whether a message is currently in the process of being sent.
110 bool is_sending_message_; 110 bool is_sending_message_;
111 111
112 DISALLOW_COPY_AND_ASSIGN(Connection); 112 DISALLOW_COPY_AND_ASSIGN(Connection);
113 }; 113 };
114 114
115 } // namespace proximity_auth 115 } // namespace cryptauth
116 116
117 #endif // COMPONENTS_PROXIMITY_AUTH_CONNECTION_H 117 #endif // COMPONENTS_CRYPTAUTH_CONNECTION_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698