| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 // Handles an incoming "decrypt_response" message, parsing and notifying | 85 // Handles an incoming "decrypt_response" message, parsing and notifying |
| 86 // observers of the decrypted content. | 86 // observers of the decrypted content. |
| 87 void HandleDecryptResponseMessage(const base::DictionaryValue& message); | 87 void HandleDecryptResponseMessage(const base::DictionaryValue& message); |
| 88 | 88 |
| 89 // Handles an incoming "unlock_response" message, notifying observers of the | 89 // Handles an incoming "unlock_response" message, notifying observers of the |
| 90 // response. | 90 // response. |
| 91 void HandleUnlockResponseMessage(const base::DictionaryValue& message); | 91 void HandleUnlockResponseMessage(const base::DictionaryValue& message); |
| 92 | 92 |
| 93 // ConnectionObserver: | 93 // ConnectionObserver: |
| 94 void OnConnectionStatusChanged(const Connection& connection, | 94 void OnConnectionStatusChanged(Connection* connection, |
| 95 Connection::Status old_status, | 95 Connection::Status old_status, |
| 96 Connection::Status new_status) override; | 96 Connection::Status new_status) override; |
| 97 void OnMessageReceived(const Connection& connection, | 97 void OnMessageReceived(const Connection& connection, |
| 98 const WireMessage& wire_message) override; | 98 const WireMessage& wire_message) override; |
| 99 void OnSendCompleted(const Connection& connection, | 99 void OnSendCompleted(const Connection& connection, |
| 100 const WireMessage& wire_message, | 100 const WireMessage& wire_message, |
| 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_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 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 |