OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 REMOTING_HOST_SIGNALING_CONNECTOR_H | 5 #ifndef REMOTING_HOST_SIGNALING_CONNECTOR_H |
6 #define REMOTING_HOST_SIGNALING_CONNECTOR_H | 6 #define REMOTING_HOST_SIGNALING_CONNECTOR_H |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 virtual void OnSignalStrategyStateChange( | 64 virtual void OnSignalStrategyStateChange( |
65 SignalStrategy::State state) OVERRIDE; | 65 SignalStrategy::State state) OVERRIDE; |
66 | 66 |
67 // NetworkChangeNotifier::IPAddressObserver interface. | 67 // NetworkChangeNotifier::IPAddressObserver interface. |
68 virtual void OnIPAddressChanged() OVERRIDE; | 68 virtual void OnIPAddressChanged() OVERRIDE; |
69 | 69 |
70 // NetworkChangeNotifier::OnlineStateObserver interface. | 70 // NetworkChangeNotifier::OnlineStateObserver interface. |
71 virtual void OnOnlineStateChanged(bool online) OVERRIDE; | 71 virtual void OnOnlineStateChanged(bool online) OVERRIDE; |
72 | 72 |
73 // GaiaOAuthClient::Delegate interface. | 73 // GaiaOAuthClient::Delegate interface. |
74 virtual void OnRefreshTokenResponse(const std::string& access_token, | 74 virtual void OnRefreshTokenResponse(const std::string& user_email, |
| 75 const std::string& access_token, |
75 int expires_seconds) OVERRIDE; | 76 int expires_seconds) OVERRIDE; |
76 virtual void OnOAuthError() OVERRIDE; | 77 virtual void OnOAuthError() OVERRIDE; |
77 virtual void OnNetworkError(int response_code) OVERRIDE; | 78 virtual void OnNetworkError(int response_code) OVERRIDE; |
78 | 79 |
79 private: | 80 private: |
80 void ScheduleTryReconnect(); | 81 void ScheduleTryReconnect(); |
81 void ResetAndTryReconnect(); | 82 void ResetAndTryReconnect(); |
82 void TryReconnect(); | 83 void TryReconnect(); |
83 | 84 |
84 void RefreshOAuthToken(); | 85 void RefreshOAuthToken(); |
(...skipping 11 matching lines...) Expand all Loading... |
96 base::Time auth_token_expiry_time_; | 97 base::Time auth_token_expiry_time_; |
97 | 98 |
98 base::OneShotTimer<SignalingConnector> timer_; | 99 base::OneShotTimer<SignalingConnector> timer_; |
99 | 100 |
100 DISALLOW_COPY_AND_ASSIGN(SignalingConnector); | 101 DISALLOW_COPY_AND_ASSIGN(SignalingConnector); |
101 }; | 102 }; |
102 | 103 |
103 } // namespace remoting | 104 } // namespace remoting |
104 | 105 |
105 #endif // REMOTING_HOST_SIGNALING_CONNECTOR_H | 106 #endif // REMOTING_HOST_SIGNALING_CONNECTOR_H |
OLD | NEW |