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

Unified Diff: chrome/browser/service/service_process_control.cc

Issue 6955010: Remove the Remoting Host component from Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove an errant include. Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/service/service_process_control.cc
diff --git a/chrome/browser/service/service_process_control.cc b/chrome/browser/service/service_process_control.cc
index 135d832a6b0167260e6263e26d902e5c9382a498..0d712417d27ef2910ea23ce177593046228b2aea 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,
« no previous file with comments | « chrome/browser/service/service_process_control.h ('k') | chrome/browser/service/service_process_control_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698