summaryrefslogtreecommitdiffstats
path: root/chrome/browser/service/service_process_control.cc
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-10 18:19:32 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-10 18:19:32 +0000
commitbb76fd4253554e9e622f85aa68bbf6a092cb1481 (patch)
tree39ad412ccd8c0a9d4099e7af9847586420bc1db1 /chrome/browser/service/service_process_control.cc
parent13bbbd19b7e90b1b4c3449f8945aab132eec8767 (diff)
downloadchromium_src-bb76fd4253554e9e622f85aa68bbf6a092cb1481.zip
chromium_src-bb76fd4253554e9e622f85aa68bbf6a092cb1481.tar.gz
chromium_src-bb76fd4253554e9e622f85aa68bbf6a092cb1481.tar.bz2
Remove the Remoting Host component from Chrome.
* Update the Remoting feature flag description. * Fix license headers. * Remove files from gyp definitions. * Remove Chromoting trigger for Service Process launch on browser startup, and Chromoting setup HTML resources. * Remove Chromoting Host registration components from Browser. * Remove resources for Chromoting Host options UI. * Remove Service Process control APIs for Chromoting Host. * Remove Chromoting Host prefs from Browser UI. * Remove WebUI for Chromoting Host. * Remove WebUI options for Chromoting Host. * Remove Chromoting Host policy options, and don't warn if Chromoting is entirely disabled by policy, since there are no user-visible settings for it anyway. * Remove Chromoting Host preference names, service IPCs and URL constants. * Remove Chromoting Host from Service Process. * Remove remoting strings, locale settings and setup "Id". BUG= TEST=Run Service Process from a profile in which Chromoting Host had previously been configured, and Cloud Print NOT configured. Chromoting Host should not be accessible, and Service Process should quit after about a minute. Review URL: http://codereview.chromium.org/6955010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84819 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/service/service_process_control.cc')
-rw-r--r--chrome/browser/service/service_process_control.cc51
1 files changed, 0 insertions, 51 deletions
diff --git a/chrome/browser/service/service_process_control.cc b/chrome/browser/service/service_process_control.cc
index 135d832..0d71241 100644
--- a/chrome/browser/service/service_process_control.cc
+++ b/chrome/browser/service/service_process_control.cc
@@ -187,8 +187,6 @@ bool ServiceProcessControl::OnMessageReceived(const IPC::Message& message) {
IPC_BEGIN_MESSAGE_MAP(ServiceProcessControl, message)
IPC_MESSAGE_HANDLER(ServiceHostMsg_CloudPrintProxy_IsEnabled,
OnCloudPrintProxyIsEnabled)
- IPC_MESSAGE_HANDLER(ServiceHostMsg_RemotingHost_HostInfo,
- OnRemotingHostInfo)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -241,15 +239,6 @@ void ServiceProcessControl::OnCloudPrintProxyIsEnabled(bool enabled,
}
}
-void ServiceProcessControl::OnRemotingHostInfo(
- const remoting::ChromotingHostInfo& host_info) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- for (std::set<MessageHandler*>::iterator it = message_handlers_.begin();
- it != message_handlers_.end(); ++it) {
- (*it)->OnRemotingHostInfo(host_info);
- }
-}
-
bool ServiceProcessControl::GetCloudPrintProxyStatus(
Callback2<bool, std::string>::Type* cloud_print_status_callback) {
DCHECK(cloud_print_status_callback);
@@ -263,46 +252,6 @@ bool ServiceProcessControl::Shutdown() {
return ret;
}
-bool ServiceProcessControl::SetRemotingHostCredentials(
- const std::string& user,
- const std::string& talk_token) {
- return Send(
- new ServiceMsg_SetRemotingHostCredentials(user, talk_token));
-}
-
-bool ServiceProcessControl::EnableRemotingHost() {
- return Send(new ServiceMsg_EnableRemotingHost());
-}
-
-bool ServiceProcessControl::DisableRemotingHost() {
- return Send(new ServiceMsg_DisableRemotingHost());
-}
-
-bool ServiceProcessControl::RequestRemotingHostStatus() {
- if (CheckServiceProcessReady()) {
- remoting::ChromotingHostInfo failure_host_info;
- failure_host_info.enabled = false;
-
- Launch(NewRunnableMethod(this, &ServiceProcessControl::Send,
- new ServiceMsg_GetRemotingHostInfo),
- NewRunnableMethod(this,
- &ServiceProcessControl::OnRemotingHostInfo,
- failure_host_info));
- return true;
- }
- return false;
-}
-
-void ServiceProcessControl::AddMessageHandler(
- MessageHandler* message_handler) {
- message_handlers_.insert(message_handler);
-}
-
-void ServiceProcessControl::RemoveMessageHandler(
- MessageHandler* message_handler) {
- message_handlers_.erase(message_handler);
-}
-
DISABLE_RUNNABLE_METHOD_REFCOUNT(ServiceProcessControl);
ServiceProcessControl::Launcher::Launcher(ServiceProcessControl* process,