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

Side by Side Diff: remoting/host/setup/win/auth_code_getter.cc

Issue 2661153003: Moving oauth code from host to base to allow code sharing between host and client. (Closed)
Patch Set: Merge branch 'master' into auth_token Created 3 years, 10 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
« no previous file with comments | « remoting/host/setup/start_host_main.cc ('k') | remoting/host/signaling_connector.h » ('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/setup/win/auth_code_getter.h" 5 #include "remoting/host/setup/win/auth_code_getter.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "base/win/scoped_bstr.h" 9 #include "base/win/scoped_bstr.h"
10 #include "base/win/scoped_variant.h" 10 #include "base/win/scoped_variant.h"
11 #include "remoting/host/setup/oauth_helper.h" 11 #include "remoting/base/oauth_helper.h"
12 12
13 namespace { 13 namespace {
14 const int kUrlPollIntervalMs = 100; 14 const int kUrlPollIntervalMs = 100;
15 } // namespace remoting 15 } // namespace remoting
16 16
17 namespace remoting { 17 namespace remoting {
18 18
19 AuthCodeGetter::AuthCodeGetter() : 19 AuthCodeGetter::AuthCodeGetter() :
20 browser_(nullptr), 20 browser_(nullptr),
21 timer_interval_(base::TimeDelta::FromMilliseconds(kUrlPollIntervalMs)) { 21 timer_interval_(base::TimeDelta::FromMilliseconds(kUrlPollIntervalMs)) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 86 }
87 87
88 void AuthCodeGetter::KillBrowser() { 88 void AuthCodeGetter::KillBrowser() {
89 if (browser_.get()) { 89 if (browser_.get()) {
90 browser_->Quit(); 90 browser_->Quit();
91 browser_.Release(); 91 browser_.Release();
92 } 92 }
93 } 93 }
94 94
95 } // namespace remoting 95 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/setup/start_host_main.cc ('k') | remoting/host/signaling_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698