| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_REMOTE_DEVICE_LIFE_CYCLE_IMPL_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_LIFE_CYCLE_IMPL_H |
| 6 #define COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_LIFE_CYCLE_IMPL_H | 6 #define COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_LIFE_CYCLE_IMPL_H |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // Context for encrypting and decrypting messages. Created after | 101 // Context for encrypting and decrypting messages. Created after |
| 102 // authentication succeeds. Ownership is eventually passed to |messenger_|. | 102 // authentication succeeds. Ownership is eventually passed to |messenger_|. |
| 103 scoped_ptr<SecureContext> secure_context_; | 103 scoped_ptr<SecureContext> secure_context_; |
| 104 | 104 |
| 105 // The messenger for sending and receiving messages in the | 105 // The messenger for sending and receiving messages in the |
| 106 // SECURE_CHANNEL_ESTABLISHED state. | 106 // SECURE_CHANNEL_ESTABLISHED state. |
| 107 scoped_ptr<Messenger> messenger_; | 107 scoped_ptr<Messenger> messenger_; |
| 108 | 108 |
| 109 // After authentication fails, this timer waits for a period of time before | 109 // After authentication fails, this timer waits for a period of time before |
| 110 // retrying the connection. | 110 // retrying the connection. |
| 111 base::OneShotTimer<RemoteDeviceLifeCycleImpl> authentication_recovery_timer_; | 111 base::OneShotTimer authentication_recovery_timer_; |
| 112 | 112 |
| 113 base::WeakPtrFactory<RemoteDeviceLifeCycleImpl> weak_ptr_factory_; | 113 base::WeakPtrFactory<RemoteDeviceLifeCycleImpl> weak_ptr_factory_; |
| 114 | 114 |
| 115 DISALLOW_COPY_AND_ASSIGN(RemoteDeviceLifeCycleImpl); | 115 DISALLOW_COPY_AND_ASSIGN(RemoteDeviceLifeCycleImpl); |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace proximity_auth | 118 } // namespace proximity_auth |
| 119 | 119 |
| 120 #endif // COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_LIFE_CYCLE_IMPL_H | 120 #endif // COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_LIFE_CYCLE_IMPL_H |
| OLD | NEW |