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_MESSENGER_IMPL_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_MESSENGER_IMPL_H |
6 #define COMPONENTS_PROXIMITY_AUTH_MESSENGER_IMPL_H | 6 #define COMPONENTS_PROXIMITY_AUTH_MESSENGER_IMPL_H |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 void HandleRemoteStatusUpdateMessage(const base::DictionaryValue& message); | 78 void HandleRemoteStatusUpdateMessage(const base::DictionaryValue& message); |
79 | 79 |
80 // Handles an incoming "decrypt_response" message, parsing and notifying | 80 // Handles an incoming "decrypt_response" message, parsing and notifying |
81 // observers of the decrypted content. | 81 // observers of the decrypted content. |
82 void HandleDecryptResponseMessage(const base::DictionaryValue& message); | 82 void HandleDecryptResponseMessage(const base::DictionaryValue& message); |
83 | 83 |
84 // Handles an incoming "unlock_response" message, notifying observers of the | 84 // Handles an incoming "unlock_response" message, notifying observers of the |
85 // response. | 85 // response. |
86 void HandleUnlockResponseMessage(const base::DictionaryValue& message); | 86 void HandleUnlockResponseMessage(const base::DictionaryValue& message); |
87 | 87 |
88 // For iOS, we can not get the screen lock state reliably without polling. | |
sacomoto
2015/09/29 18:45:57
nit: We need to poll the iOS device to keep the ap
Tim Song
2015/09/30 00:05:04
Done.
| |
89 // This function sends a poll message every few seconds. | |
90 void PollScreenStateForIOS(); | |
91 | |
88 // ConnectionObserver: | 92 // ConnectionObserver: |
89 void OnConnectionStatusChanged(Connection* connection, | 93 void OnConnectionStatusChanged(Connection* connection, |
90 Connection::Status old_status, | 94 Connection::Status old_status, |
91 Connection::Status new_status) override; | 95 Connection::Status new_status) override; |
92 void OnMessageReceived(const Connection& connection, | 96 void OnMessageReceived(const Connection& connection, |
93 const WireMessage& wire_message) override; | 97 const WireMessage& wire_message) override; |
94 void OnSendCompleted(const Connection& connection, | 98 void OnSendCompleted(const Connection& connection, |
95 const WireMessage& wire_message, | 99 const WireMessage& wire_message, |
96 bool success) override; | 100 bool success) override; |
97 | 101 |
(...skipping 15 matching lines...) Expand all Loading... | |
113 scoped_ptr<PendingMessage> pending_message_; | 117 scoped_ptr<PendingMessage> pending_message_; |
114 | 118 |
115 base::WeakPtrFactory<MessengerImpl> weak_ptr_factory_; | 119 base::WeakPtrFactory<MessengerImpl> weak_ptr_factory_; |
116 | 120 |
117 DISALLOW_COPY_AND_ASSIGN(MessengerImpl); | 121 DISALLOW_COPY_AND_ASSIGN(MessengerImpl); |
118 }; | 122 }; |
119 | 123 |
120 } // namespace proximity_auth | 124 } // namespace proximity_auth |
121 | 125 |
122 #endif // COMPONENTS_PROXIMITY_AUTH_MESSENGER_IMPL_H | 126 #endif // COMPONENTS_PROXIMITY_AUTH_MESSENGER_IMPL_H |
OLD | NEW |