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

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

Issue 10988004: Revert 158366 - Cleanups in Chromoting Host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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/simple_host_process.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 #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
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
OLDNEW
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/simple_host_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698