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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 virtual ~SignalingConnector(); | 56 virtual ~SignalingConnector(); |
57 | 57 |
58 // May be called immediately after the constructor to enable OAuth | 58 // May be called immediately after the constructor to enable OAuth |
59 // access token updating. | 59 // access token updating. |
60 void EnableOAuth(scoped_ptr<OAuthCredentials> oauth_credentials, | 60 void EnableOAuth(scoped_ptr<OAuthCredentials> oauth_credentials, |
61 net::URLRequestContextGetter* url_context); | 61 net::URLRequestContextGetter* url_context); |
62 | 62 |
63 // SignalStrategy::Listener interface. | 63 // SignalStrategy::Listener interface. |
64 virtual void OnSignalStrategyStateChange( | 64 virtual void OnSignalStrategyStateChange( |
65 SignalStrategy::State state) OVERRIDE; | 65 SignalStrategy::State state) OVERRIDE; |
| 66 virtual bool OnSignalStrategyIncomingStanza( |
| 67 const buzz::XmlElement* stanza) OVERRIDE; |
66 | 68 |
67 // NetworkChangeNotifier::IPAddressObserver interface. | 69 // NetworkChangeNotifier::IPAddressObserver interface. |
68 virtual void OnIPAddressChanged() OVERRIDE; | 70 virtual void OnIPAddressChanged() OVERRIDE; |
69 | 71 |
70 // NetworkChangeNotifier::ConnectionTypeObserver interface. | 72 // NetworkChangeNotifier::ConnectionTypeObserver interface. |
71 virtual void OnConnectionTypeChanged( | 73 virtual void OnConnectionTypeChanged( |
72 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE; | 74 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE; |
73 | 75 |
74 // GaiaOAuthClient::Delegate interface. | 76 // GaiaOAuthClient::Delegate interface. |
75 virtual void OnRefreshTokenResponse(const std::string& user_email, | 77 virtual void OnRefreshTokenResponse(const std::string& user_email, |
(...skipping 22 matching lines...) Expand all Loading... |
98 base::Time auth_token_expiry_time_; | 100 base::Time auth_token_expiry_time_; |
99 | 101 |
100 base::OneShotTimer<SignalingConnector> timer_; | 102 base::OneShotTimer<SignalingConnector> timer_; |
101 | 103 |
102 DISALLOW_COPY_AND_ASSIGN(SignalingConnector); | 104 DISALLOW_COPY_AND_ASSIGN(SignalingConnector); |
103 }; | 105 }; |
104 | 106 |
105 } // namespace remoting | 107 } // namespace remoting |
106 | 108 |
107 #endif // REMOTING_HOST_SIGNALING_CONNECTOR_H_ | 109 #endif // REMOTING_HOST_SIGNALING_CONNECTOR_H_ |
OLD | NEW |