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

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

Issue 10913260: Cleanups in Chromoting Host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
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 #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"
12 #include "remoting/host/dns_blackhole_checker.h" 11 #include "remoting/host/dns_blackhole_checker.h"
13 #include "remoting/host/url_request_context.h" 12 #include "remoting/host/url_request_context.h"
14 13
15 namespace remoting { 14 namespace remoting {
16 15
17 namespace { 16 namespace {
18 17
19 // The delay between reconnect attempts will increase exponentially up 18 // The delay between reconnect attempts will increase exponentially up
20 // to the maximum specified here. 19 // to the maximum specified here.
21 const int kMaxReconnectDelaySeconds = 10 * 60; 20 const int kMaxReconnectDelaySeconds = 10 * 60;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 LOG(INFO) << "Refreshing OAuth token."; 210 LOG(INFO) << "Refreshing OAuth token.";
212 DCHECK(!refreshing_oauth_token_); 211 DCHECK(!refreshing_oauth_token_);
213 212
214 refreshing_oauth_token_ = true; 213 refreshing_oauth_token_ = true;
215 gaia_oauth_client_->RefreshToken( 214 gaia_oauth_client_->RefreshToken(
216 oauth_credentials_->client_info, 215 oauth_credentials_->client_info,
217 oauth_credentials_->refresh_token, this); 216 oauth_credentials_->refresh_token, this);
218 } 217 }
219 218
220 } // namespace remoting 219 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698