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 #include "remoting/host/signaling_connector.h" | 5 #include "remoting/host/signaling_connector.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "net/url_request/url_fetcher.h" | 9 #include "net/url_request/url_fetcher.h" |
10 #include "remoting/host/chromoting_host_context.h" | 10 #include "remoting/host/chromoting_host_context.h" |
| 11 #include "remoting/host/constants.h" |
11 #include "remoting/host/dns_blackhole_checker.h" | 12 #include "remoting/host/dns_blackhole_checker.h" |
12 #include "remoting/host/url_request_context.h" | 13 #include "remoting/host/url_request_context.h" |
13 | 14 |
14 namespace remoting { | 15 namespace remoting { |
15 | 16 |
16 namespace { | 17 namespace { |
17 | 18 |
18 // The delay between reconnect attempts will increase exponentially up | 19 // The delay between reconnect attempts will increase exponentially up |
19 // to the maximum specified here. | 20 // to the maximum specified here. |
20 const int kMaxReconnectDelaySeconds = 10 * 60; | 21 const int kMaxReconnectDelaySeconds = 10 * 60; |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 LOG(INFO) << "Refreshing OAuth token."; | 211 LOG(INFO) << "Refreshing OAuth token."; |
211 DCHECK(!refreshing_oauth_token_); | 212 DCHECK(!refreshing_oauth_token_); |
212 | 213 |
213 refreshing_oauth_token_ = true; | 214 refreshing_oauth_token_ = true; |
214 gaia_oauth_client_->RefreshToken( | 215 gaia_oauth_client_->RefreshToken( |
215 oauth_credentials_->client_info, | 216 oauth_credentials_->client_info, |
216 oauth_credentials_->refresh_token, this); | 217 oauth_credentials_->refresh_token, this); |
217 } | 218 } |
218 | 219 |
219 } // namespace remoting | 220 } // namespace remoting |
OLD | NEW |