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

Side by Side Diff: remoting/host/signaling_connector.h

Issue 10332187: Properly handle accounts that don't have GMail. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/signaling_connector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/signaling_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698