Skip to content

Commit

Permalink
Move url_request_context from remoting/host/ to remoting/base/
Browse files Browse the repository at this point in the history
This will make it easy for future non--Web app client implementations to make use of this class.
The vlog_net_log class also had to be relocated.

Review URL: https://chromiumcodereview.appspot.com/18460003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210235 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
solb@chromium.org committed Jul 4, 2013
1 parent 49eb97b commit 87b327a
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "remoting/host/url_request_context.h"
#include "remoting/base/url_request_context.h"

#include "base/message_loop/message_loop_proxy.h"
#include "net/cert/cert_verifier.h"
Expand All @@ -15,7 +15,7 @@
#include "net/proxy/proxy_config_service.h"
#include "net/proxy/proxy_service.h"
#include "net/ssl/ssl_config_service_defaults.h"
#include "remoting/host/vlog_net_log.h"
#include "remoting/base/vlog_net_log.h"

#if defined(OS_WIN)
#include "net/proxy/proxy_config_service_win.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef REMOTING_HOST_URL_REQUEST_CONTEXT_H_
#define REMOTING_HOST_URL_REQUEST_CONTEXT_H_
#ifndef REMOTING_BASE_URL_REQUEST_CONTEXT_H_
#define REMOTING_BASE_URL_REQUEST_CONTEXT_H_

#include <string>

Expand Down Expand Up @@ -61,4 +61,4 @@ class URLRequestContextGetter : public net::URLRequestContextGetter {

} // namespace remoting

#endif // REMOTING_HOST_URL_REQUEST_CONTEXT_H_
#endif // REMOTING_BASE_URL_REQUEST_CONTEXT_H_
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "remoting/host/vlog_net_log.h"
#include "remoting/base/vlog_net_log.h"

#include "base/json/json_writer.h"
#include "base/logging.h"
Expand Down
8 changes: 4 additions & 4 deletions remoting/host/vlog_net_log.h → remoting/base/vlog_net_log.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef REMOTING_HOST_VLOG_NET_LOG_H_
#define REMOTING_HOST_VLOG_NET_LOG_H_
#ifndef REMOTING_BASE_VLOG_NET_LOG_H_
#define REMOTING_BASE_VLOG_NET_LOG_H_

#include "base/memory/scoped_handle.h"
#include "base/memory/scoped_ptr.h"
Expand All @@ -29,4 +29,4 @@ class VlogNetLog : public net::NetLog {

} // namespace remoting

#endif // REMOTING_HOST_VLOG_NET_LOG_H_
#endif // REMOTING_BASE_VLOG_NET_LOG_H_
2 changes: 1 addition & 1 deletion remoting/host/chromoting_host_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "base/bind.h"
#include "remoting/base/auto_thread.h"
#include "remoting/host/url_request_context.h"
#include "remoting/base/url_request_context.h"

namespace remoting {

Expand Down
2 changes: 1 addition & 1 deletion remoting/host/setup/host_starter.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#include "base/callback.h"
#include "google_apis/gaia/gaia_oauth_client.h"
#include "remoting/base/rsa_key_pair.h"
#include "remoting/base/url_request_context.h"
#include "remoting/host/service_client.h"
#include "remoting/host/setup/daemon_controller.h"
#include "remoting/host/url_request_context.h"

namespace remoting {

Expand Down
2 changes: 1 addition & 1 deletion remoting/host/setup/start_host.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
#include "base/threading/thread.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request_context_getter.h"
#include "remoting/base/url_request_context.h"
#include "remoting/host/service_urls.h"
#include "remoting/host/setup/host_starter.h"
#include "remoting/host/setup/oauth_helper.h"
#include "remoting/host/setup/pin_validator.h"
#include "remoting/host/url_request_context.h"

// A simple command-line app that registers and starts a host.

Expand Down
2 changes: 1 addition & 1 deletion remoting/host/setup/win/host_configurer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include "base/command_line.h"
#include "base/run_loop.h"
#include "base/threading/thread.h"
#include "remoting/base/url_request_context.h"
#include "remoting/host/setup/win/host_configurer_window.h"
#include "remoting/host/url_request_context.h"

class HostConfigurerModule
: public ATL::CAtlExeModuleT<HostConfigurerModule> {
Expand Down
8 changes: 4 additions & 4 deletions remoting/remoting.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -452,15 +452,11 @@
'host/token_validator_factory_impl.h',
'host/ui_strings.cc',
'host/ui_strings.h',
'host/url_request_context.cc',
'host/url_request_context.h',
'host/usage_stats_consent.h',
'host/usage_stats_consent_mac.cc',
'host/usage_stats_consent_win.cc',
'host/video_scheduler.cc',
'host/video_scheduler.h',
'host/vlog_net_log.cc',
'host/vlog_net_log.h',
'host/win/com_security.cc',
'host/win/com_security.h',
'host/win/launch_process_with_token.cc',
Expand Down Expand Up @@ -2334,8 +2330,12 @@
'base/socket_reader.cc',
'base/socket_reader.h',
'base/typed_buffer.h',
'base/url_request_context.cc',
'base/url_request_context.h',
'base/util.cc',
'base/util.h',
'base/vlog_net_log.cc',
'base/vlog_net_log.h',
'codec/audio_decoder.cc',
'codec/audio_decoder.h',
'codec/audio_decoder_opus.cc',
Expand Down

0 comments on commit 87b327a

Please sign in to comment.