| OLD | NEW |
| 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_CLIENT_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_CLIENT_H |
| 6 #define COMPONENTS_PROXIMITY_AUTH_CLIENT_H | 6 #define COMPONENTS_PROXIMITY_AUTH_CLIENT_H |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 bool success) override; | 101 bool success) override; |
| 102 | 102 |
| 103 // The connection used to send and receive events and status updates. | 103 // The connection used to send and receive events and status updates. |
| 104 scoped_ptr<Connection> connection_; | 104 scoped_ptr<Connection> connection_; |
| 105 | 105 |
| 106 // Used to encrypt and decrypt payloads sent and received over the | 106 // Used to encrypt and decrypt payloads sent and received over the |
| 107 // |connection_|. | 107 // |connection_|. |
| 108 scoped_ptr<SecureContext> secure_context_; | 108 scoped_ptr<SecureContext> secure_context_; |
| 109 | 109 |
| 110 // The registered observers of |this_| client. | 110 // The registered observers of |this_| client. |
| 111 ObserverList<ClientObserver> observers_; | 111 base::ObserverList<ClientObserver> observers_; |
| 112 | 112 |
| 113 // Queue of messages to send to the remote device. | 113 // Queue of messages to send to the remote device. |
| 114 std::deque<PendingMessage> queued_messages_; | 114 std::deque<PendingMessage> queued_messages_; |
| 115 | 115 |
| 116 // The current message being sent or waiting on the remote device for a | 116 // The current message being sent or waiting on the remote device for a |
| 117 // response. Null if there is no message currently in this state. | 117 // response. Null if there is no message currently in this state. |
| 118 scoped_ptr<PendingMessage> pending_message_; | 118 scoped_ptr<PendingMessage> pending_message_; |
| 119 | 119 |
| 120 DISALLOW_COPY_AND_ASSIGN(Client); | 120 DISALLOW_COPY_AND_ASSIGN(Client); |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace proximity_auth | 123 } // namespace proximity_auth |
| 124 | 124 |
| 125 #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_H | 125 #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_H |
| OLD | NEW |