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

Side by Side Diff: remoting/host/setup/start_host.cc

Issue 18460003: Move url_request_context from remoting/host/ to remoting/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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/host_starter.h ('k') | remoting/host/setup/win/host_configurer.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 <stdio.h> 5 #include <stdio.h>
6 #include <termios.h> 6 #include <termios.h>
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "net/url_request/url_fetcher.h" 13 #include "net/url_request/url_fetcher.h"
14 #include "net/url_request/url_request_context_getter.h" 14 #include "net/url_request/url_request_context_getter.h"
15 #include "remoting/base/url_request_context.h"
15 #include "remoting/host/service_urls.h" 16 #include "remoting/host/service_urls.h"
16 #include "remoting/host/setup/host_starter.h" 17 #include "remoting/host/setup/host_starter.h"
17 #include "remoting/host/setup/oauth_helper.h" 18 #include "remoting/host/setup/oauth_helper.h"
18 #include "remoting/host/setup/pin_validator.h" 19 #include "remoting/host/setup/pin_validator.h"
19 #include "remoting/host/url_request_context.h"
20 20
21 // A simple command-line app that registers and starts a host. 21 // A simple command-line app that registers and starts a host.
22 22
23 using remoting::HostStarter; 23 using remoting::HostStarter;
24 24
25 // True if the host was started successfully. 25 // True if the host was started successfully.
26 bool g_started = false; 26 bool g_started = false;
27 27
28 // The main message loop. 28 // The main message loop.
29 base::MessageLoop* g_message_loop = NULL; 29 base::MessageLoop* g_message_loop = NULL;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 // Destroy the HostStarter and URLRequestContextGetter before stopping the 176 // Destroy the HostStarter and URLRequestContextGetter before stopping the
177 // IO thread. 177 // IO thread.
178 host_starter.reset(); 178 host_starter.reset();
179 url_request_context_getter = NULL; 179 url_request_context_getter = NULL;
180 180
181 io_thread.Stop(); 181 io_thread.Stop();
182 182
183 return g_started ? 0 : 1; 183 return g_started ? 0 : 1;
184 } 184 }
OLDNEW
« no previous file with comments | « remoting/host/setup/host_starter.h ('k') | remoting/host/setup/win/host_configurer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698