diff options
author | sergeyu <sergeyu@chromium.org> | 2016-03-23 15:13:06 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-23 22:14:57 +0000 |
commit | 2a2656a67bd2ce190df4d918f609bdb4449a64fe (patch) | |
tree | a0c6e96ac52ad22f65bb513c9dff35af616aef5e | |
parent | 9aa3054b0d2bacf5cc9774de798ebb35cfa88f01 (diff) | |
download | chromium_src-2a2656a67bd2ce190df4d918f609bdb4449a64fe.zip chromium_src-2a2656a67bd2ce190df4d918f609bdb4449a64fe.tar.gz chromium_src-2a2656a67bd2ce190df4d918f609bdb4449a64fe.tar.bz2 |
Move ServiceUrls to remoting/host
ServiceUrls was used only in one place in android client and it's
not really useful there. Moved it to the host directory.
TBR=rogerta@chromium.org
Review URL: https://codereview.chromium.org/1817573003
Cr-Commit-Position: refs/heads/master@{#382939}
-rw-r--r-- | remoting/DEPS | 1 | ||||
-rw-r--r-- | remoting/android/BUILD.gn | 1 | ||||
-rw-r--r-- | remoting/base/BUILD.gn | 1 | ||||
-rw-r--r-- | remoting/client/jni/chromoting_jni_instance.cc | 8 | ||||
-rw-r--r-- | remoting/host/DEPS | 1 | ||||
-rw-r--r-- | remoting/host/it2me/it2me_host.cc | 2 | ||||
-rw-r--r-- | remoting/host/it2me/it2me_native_messaging_host.cc | 2 | ||||
-rw-r--r-- | remoting/host/remoting_me2me_host.cc | 2 | ||||
-rw-r--r-- | remoting/host/service_urls.cc (renamed from remoting/base/service_urls.cc) | 4 | ||||
-rw-r--r-- | remoting/host/service_urls.h (renamed from remoting/base/service_urls.h) | 8 | ||||
-rw-r--r-- | remoting/host/setup/start_host.cc | 2 | ||||
-rw-r--r-- | remoting/remoting_android.gypi | 1 | ||||
-rw-r--r-- | remoting/remoting_host_srcs.gypi | 6 | ||||
-rw-r--r-- | remoting/remoting_srcs.gypi | 2 | ||||
-rw-r--r-- | remoting/test/DEPS | 1 | ||||
-rw-r--r-- | remoting/test/test_chromoting_client.cc | 3 |
16 files changed, 20 insertions, 25 deletions
diff --git a/remoting/DEPS b/remoting/DEPS index 5d57d6c..9d57819 100644 --- a/remoting/DEPS +++ b/remoting/DEPS @@ -1,6 +1,5 @@ include_rules = [ "+crypto", - "+google_apis", # Note: Only for net::EnableSSLServerSockets(), which must be called by # unit tests at process start. diff --git a/remoting/android/BUILD.gn b/remoting/android/BUILD.gn index d0bac7c..62112fa 100644 --- a/remoting/android/BUILD.gn +++ b/remoting/android/BUILD.gn @@ -20,7 +20,6 @@ generate_jni("jni_headers") { shared_library("remoting_client_jni") { deps = [ - "//google_apis", "//remoting/android:jni_headers", "//remoting/base", "//remoting/client", diff --git a/remoting/base/BUILD.gn b/remoting/base/BUILD.gn index 97dc3aa..8a039e1 100644 --- a/remoting/base/BUILD.gn +++ b/remoting/base/BUILD.gn @@ -26,7 +26,6 @@ source_set("base") { if (is_nacl) { sources -= [ "chromium_url_request.cc", - "service_urls.cc", "url_request_context_getter.cc", ] } diff --git a/remoting/client/jni/chromoting_jni_instance.cc b/remoting/client/jni/chromoting_jni_instance.cc index 7d8b7f8..f7adccc 100644 --- a/remoting/client/jni/chromoting_jni_instance.cc +++ b/remoting/client/jni/chromoting_jni_instance.cc @@ -15,7 +15,6 @@ #include "jingle/glue/thread_wrapper.h" #include "net/socket/client_socket_factory.h" #include "remoting/base/chromium_url_request.h" -#include "remoting/base/service_urls.h" #include "remoting/client/audio_player.h" #include "remoting/client/client_status_logger.h" #include "remoting/client/jni/android_keymap.h" @@ -41,6 +40,8 @@ const char* const kXmppServer = "talk.google.com"; const int kXmppPort = 5222; const bool kXmppUseTls = true; +const char kDirectoryBotJid[] = "remoting@bot.talk.google.com"; + // Interval at which to log performance statistics, if enabled. const int kPerfStatsIntervalMs = 60000; @@ -394,9 +395,8 @@ void ChromotingJniInstance::ConnectToHostOnNetworkThread() { new XmppSignalStrategy(net::ClientSocketFactory::GetDefaultFactory(), jni_runtime_->url_requester(), xmpp_config_)); - client_status_logger_.reset( - new ClientStatusLogger(ServerLogEntry::ME2ME, signaling_.get(), - ServiceUrls::GetInstance()->directory_bot_jid())); + client_status_logger_.reset(new ClientStatusLogger( + ServerLogEntry::ME2ME, signaling_.get(), kDirectoryBotJid)); scoped_refptr<protocol::TransportContext> transport_context = new protocol::TransportContext( diff --git a/remoting/host/DEPS b/remoting/host/DEPS index 052a0c5c..f05283a 100644 --- a/remoting/host/DEPS +++ b/remoting/host/DEPS @@ -3,6 +3,7 @@ include_rules = [ "+cc/output", "+components/policy/core/common", "+extensions/browser/api/messaging", + "+google_apis", "+jingle/glue", "+net", "+remoting/codec", diff --git a/remoting/host/it2me/it2me_host.cc b/remoting/host/it2me/it2me_host.cc index 08eb7e1..0d51b3f 100644 --- a/remoting/host/it2me/it2me_host.cc +++ b/remoting/host/it2me/it2me_host.cc @@ -19,7 +19,6 @@ #include "remoting/base/chromium_url_request.h" #include "remoting/base/logging.h" #include "remoting/base/rsa_key_pair.h" -#include "remoting/base/service_urls.h" #include "remoting/host/chromoting_host.h" #include "remoting/host/chromoting_host_context.h" #include "remoting/host/host_event_logger.h" @@ -29,6 +28,7 @@ #include "remoting/host/it2me_desktop_environment.h" #include "remoting/host/policy_watcher.h" #include "remoting/host/register_support_host_request.h" +#include "remoting/host/service_urls.h" #include "remoting/protocol/auth_util.h" #include "remoting/protocol/chromium_port_allocator_factory.h" #include "remoting/protocol/ice_transport.h" diff --git a/remoting/host/it2me/it2me_native_messaging_host.cc b/remoting/host/it2me/it2me_native_messaging_host.cc index 424e8b8..87ecea8 100644 --- a/remoting/host/it2me/it2me_native_messaging_host.cc +++ b/remoting/host/it2me/it2me_native_messaging_host.cc @@ -19,9 +19,9 @@ #include "build/build_config.h" #include "net/base/url_util.h" #include "net/url_request/url_request_context_getter.h" -#include "remoting/base/service_urls.h" #include "remoting/host/chromoting_host_context.h" #include "remoting/host/host_exit_codes.h" +#include "remoting/host/service_urls.h" #include "remoting/protocol/name_value_map.h" namespace remoting { diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc index a1030dd..eac1eec 100644 --- a/remoting/host/remoting_me2me_host.cc +++ b/remoting/host/remoting_me2me_host.cc @@ -42,7 +42,6 @@ #include "remoting/base/constants.h" #include "remoting/base/logging.h" #include "remoting/base/rsa_key_pair.h" -#include "remoting/base/service_urls.h" #include "remoting/base/util.h" #include "remoting/host/branding.h" #include "remoting/host/chromoting_host.h" @@ -73,6 +72,7 @@ #include "remoting/host/policy_watcher.h" #include "remoting/host/security_key/gnubby_auth_handler.h" #include "remoting/host/security_key/gnubby_extension.h" +#include "remoting/host/service_urls.h" #include "remoting/host/shutdown_watchdog.h" #include "remoting/host/signaling_connector.h" #include "remoting/host/single_window_desktop_environment.h" diff --git a/remoting/base/service_urls.cc b/remoting/host/service_urls.cc index 3ba940b..d3f2876 100644 --- a/remoting/base/service_urls.cc +++ b/remoting/host/service_urls.cc @@ -1,8 +1,8 @@ -// Copyright 2014 The Chromium Authors. All rights reserved. +// Copyright 2016 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/base/service_urls.h" +#include "remoting/host/service_urls.h" #include "base/command_line.h" #include "base/logging.h" diff --git a/remoting/base/service_urls.h b/remoting/host/service_urls.h index 5c47d65..62d279b8 100644 --- a/remoting/base/service_urls.h +++ b/remoting/host/service_urls.h @@ -1,9 +1,9 @@ -// Copyright 2014 The Chromium Authors. All rights reserved. +// Copyright 2016 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_BASE_SERVICE_URLS_H_ -#define REMOTING_BASE_SERVICE_URLS_H_ +#ifndef REMOTING_HOST_SERVICE_URLS_H_ +#define REMOTING_HOST_SERVICE_URLS_H_ #include <string> @@ -66,4 +66,4 @@ class ServiceUrls { } // namespace remoting -#endif // REMOTING_BASE_SERVICE_URLS_H_ +#endif // REMOTING_HOST_SERVICE_URLS_H_ diff --git a/remoting/host/setup/start_host.cc b/remoting/host/setup/start_host.cc index 3009570..3c80d81 100644 --- a/remoting/host/setup/start_host.cc +++ b/remoting/host/setup/start_host.cc @@ -16,8 +16,8 @@ #include "net/url_request/url_fetcher.h" #include "net/url_request/url_request_context_getter.h" #include "remoting/base/logging.h" -#include "remoting/base/service_urls.h" #include "remoting/base/url_request_context_getter.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" diff --git a/remoting/remoting_android.gypi b/remoting/remoting_android.gypi index 7a79a72..61d4215 100644 --- a/remoting/remoting_android.gypi +++ b/remoting/remoting_android.gypi @@ -38,7 +38,6 @@ 'remoting_client', 'remoting_jni_headers', 'remoting_protocol', - '../google_apis/google_apis.gyp:google_apis', '../ui/events/events.gyp:dom_keycode_converter', '../ui/gfx/gfx.gyp:gfx', ], diff --git a/remoting/remoting_host_srcs.gypi b/remoting/remoting_host_srcs.gypi index 725c5b5..d768314 100644 --- a/remoting/remoting_host_srcs.gypi +++ b/remoting/remoting_host_srcs.gypi @@ -222,16 +222,18 @@ 'host/security_key/gnubby_extension_session.h', 'host/security_key/gnubby_socket.cc', 'host/security_key/gnubby_socket.h', - 'host/security_key/remote_security_key_ipc_constants.cc', - 'host/security_key/remote_security_key_ipc_constants.h', 'host/security_key/remote_security_key_ipc_client.cc', 'host/security_key/remote_security_key_ipc_client.h', + 'host/security_key/remote_security_key_ipc_constants.cc', + 'host/security_key/remote_security_key_ipc_constants.h', 'host/security_key/remote_security_key_ipc_server.cc', 'host/security_key/remote_security_key_ipc_server.h', 'host/security_key/remote_security_key_ipc_server_impl.cc', 'host/security_key/remote_security_key_ipc_server_impl.h', 'host/server_log_entry_host.cc', 'host/server_log_entry_host.h', + 'host/service_urls.cc', + 'host/service_urls.h', 'host/shaped_desktop_capturer.cc', 'host/shaped_desktop_capturer.h', 'host/shutdown_watchdog.cc', diff --git a/remoting/remoting_srcs.gypi b/remoting/remoting_srcs.gypi index d1c1ee4..adba780 100644 --- a/remoting/remoting_srcs.gypi +++ b/remoting/remoting_srcs.gypi @@ -28,8 +28,6 @@ 'base/running_average.cc', 'base/running_average.h', 'base/scoped_sc_handle_win.h', - 'base/service_urls.cc', - 'base/service_urls.h', 'base/socket_reader.cc', 'base/socket_reader.h', 'base/typed_buffer.h', diff --git a/remoting/test/DEPS b/remoting/test/DEPS index 485d290..7a7eb3a 100644 --- a/remoting/test/DEPS +++ b/remoting/test/DEPS @@ -1,4 +1,5 @@ include_rules = [ + "+google_apis", "+jingle/glue", "+net", "+remoting/client", diff --git a/remoting/test/test_chromoting_client.cc b/remoting/test/test_chromoting_client.cc index d4d8c29..9bc33ca 100644 --- a/remoting/test/test_chromoting_client.cc +++ b/remoting/test/test_chromoting_client.cc @@ -14,7 +14,6 @@ #include "net/base/request_priority.h" #include "net/socket/client_socket_factory.h" #include "remoting/base/chromium_url_request.h" -#include "remoting/base/service_urls.h" #include "remoting/base/url_request_context_getter.h" #include "remoting/client/audio_player.h" #include "remoting/client/chromoting_client.h" @@ -126,8 +125,6 @@ void TestChromotingClient::StartConnection( make_scoped_ptr( new ChromiumUrlRequestFactory(request_context_getter)), network_settings, protocol::TransportRole::CLIENT)); - transport_context->set_ice_config_url( - ServiceUrls::GetInstance()->ice_config_url()); protocol::ClientAuthenticationConfig client_auth_config; client_auth_config.host_id = connection_setup_info.host_id; |