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

Unified Diff: chrome/service/service_ipc_server.cc

Issue 5955001: Remove chromoting host registration from service process. More IPCs to control (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merges Created 10 years 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
« no previous file with comments | « chrome/service/service_ipc_server.h ('k') | chrome/service/service_process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_ipc_server.cc
diff --git a/chrome/service/service_ipc_server.cc b/chrome/service/service_ipc_server.cc
index 71ae5d75d849d95c35883c939121550137de6901..c7280c323b75b578902e744b5be1cce14d82423f 100644
--- a/chrome/service/service_ipc_server.cc
+++ b/chrome/service/service_ipc_server.cc
@@ -83,12 +83,20 @@ void ServiceIPCServer::OnMessageReceived(const IPC::Message& msg) {
OnEnableCloudPrintProxy)
IPC_MESSAGE_HANDLER(ServiceMsg_EnableCloudPrintProxyWithTokens,
OnEnableCloudPrintProxyWithTokens)
- IPC_MESSAGE_HANDLER(ServiceMsg_EnableRemotingWithTokens,
- OnEnableRemotingWithTokens)
IPC_MESSAGE_HANDLER(ServiceMsg_DisableCloudPrintProxy,
OnDisableCloudPrintProxy)
IPC_MESSAGE_HANDLER(ServiceMsg_IsCloudPrintProxyEnabled,
OnIsCloudPrintProxyEnabled)
+#if defined(ENABLE_REMOTING)
+ IPC_MESSAGE_HANDLER(ServiceMsg_SetRemotingHostCredentials,
+ OnSetRemotingHostCredentials)
+ IPC_MESSAGE_HANDLER(ServiceMsg_EnableRemotingHost,
+ OnEnableRemotingHost)
+ IPC_MESSAGE_HANDLER(ServiceMsg_DisableRemotingHost,
+ OnDisableRemotingHost)
+ IPC_MESSAGE_HANDLER(ServiceMsg_GetRemotingHostInfo,
+ OnGetRemotingHostInfo)
+#endif // defined(ENABLE_REMOTING)
IPC_MESSAGE_HANDLER(ServiceMsg_Hello, OnHello);
IPC_MESSAGE_HANDLER(ServiceMsg_Shutdown, OnShutdown);
IPC_MESSAGE_HANDLER(ServiceMsg_UpdateAvailable, OnUpdateAvailable);
@@ -112,16 +120,29 @@ void ServiceIPCServer::OnIsCloudPrintProxyEnabled() {
email));
}
-void ServiceIPCServer::OnEnableRemotingWithTokens(
- const std::string& login,
- const std::string& remoting_token,
- const std::string& talk_token) {
#if defined(ENABLE_REMOTING)
- g_service_process->EnableChromotingHostWithTokens(login, remoting_token,
- talk_token);
-#endif
+void ServiceIPCServer::OnSetRemotingHostCredentials(
+ const std::string& login,
+ const std::string& auth_token) {
+ g_service_process->remoting_host_manager()->SetCredentials(
+ login, auth_token);
+}
+
+void ServiceIPCServer::OnEnableRemotingHost() {
+ g_service_process->remoting_host_manager()->Enable();
}
+void ServiceIPCServer:: OnDisableRemotingHost() {
+ g_service_process->remoting_host_manager()->Disable();
+}
+
+void ServiceIPCServer:: OnGetRemotingHostInfo() {
+ remoting::ChromotingHostInfo host_info;
+ g_service_process->remoting_host_manager()->GetHostInfo(&host_info);
+ channel_->Send(new ServiceHostMsg_RemotingHost_HostInfo(host_info));
+}
+#endif // defined(ENABLE_REMOTING)
+
void ServiceIPCServer::OnDisableCloudPrintProxy() {
g_service_process->GetCloudPrintProxy()->DisableForUser();
}
@@ -137,4 +158,3 @@ void ServiceIPCServer::OnShutdown() {
void ServiceIPCServer::OnUpdateAvailable() {
g_service_process->SetUpdateAvailable();
}
-
« no previous file with comments | « chrome/service/service_ipc_server.h ('k') | chrome/service/service_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698