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

Side by Side Diff: components/proximity_auth/remote_device_life_cycle_impl.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 months 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 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
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
OLDNEW
« no previous file with comments | « components/proximity_auth/device_to_device_authenticator.cc ('k') | components/rappor/log_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698