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

Side by Side Diff: remoting/host/setup/start_host_main.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
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/start_host_main.h" 5 #include "remoting/host/setup/start_host_main.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdio.h> 8 #include <stdio.h>
9 9
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "net/url_request/url_fetcher.h" 17 #include "net/url_request/url_fetcher.h"
18 #include "net/url_request/url_request_context_getter.h" 18 #include "net/url_request/url_request_context_getter.h"
19 #include "remoting/base/logging.h" 19 #include "remoting/base/logging.h"
20 #include "remoting/base/oauth_helper.h"
20 #include "remoting/base/url_request_context_getter.h" 21 #include "remoting/base/url_request_context_getter.h"
21 #include "remoting/host/service_urls.h" 22 #include "remoting/host/service_urls.h"
22 #include "remoting/host/setup/host_starter.h" 23 #include "remoting/host/setup/host_starter.h"
23 #include "remoting/host/setup/oauth_helper.h"
24 #include "remoting/host/setup/pin_validator.h" 24 #include "remoting/host/setup/pin_validator.h"
25 25
26 #if defined(OS_POSIX) 26 #if defined(OS_POSIX)
27 #include <termios.h> 27 #include <termios.h>
28 #include <unistd.h> 28 #include <unistd.h>
29 #endif // defined(OS_POSIX) 29 #endif // defined(OS_POSIX)
30 30
31 #if defined(OS_WIN) 31 #if defined(OS_WIN)
32 #include "remoting/host/win/elevation_helpers.h" 32 #include "remoting/host/win/elevation_helpers.h"
33 #endif // defined(OS_WIN) 33 #endif // defined(OS_WIN)
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // IO thread. 234 // IO thread.
235 host_starter.reset(); 235 host_starter.reset();
236 url_request_context_getter = nullptr; 236 url_request_context_getter = nullptr;
237 237
238 io_thread.Stop(); 238 io_thread.Stop();
239 239
240 return g_started ? 0 : 1; 240 return g_started ? 0 : 1;
241 } 241 }
242 242
243 } // namespace remoting 243 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/setup/oauth_helper_unittest.cc ('k') | remoting/host/setup/win/auth_code_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698