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

Side by Side Diff: chrome/service/service_ipc_server.h

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 9 years, 12 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_SERVICE_SERVICE_IPC_SERVER_H_ 5 #ifndef CHROME_SERVICE_SERVICE_IPC_SERVER_H_
6 #define CHROME_SERVICE_SERVICE_IPC_SERVER_H_ 6 #define CHROME_SERVICE_SERVICE_IPC_SERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 26 matching lines...) Expand all
37 // IPC::Channel::Listener implementation: 37 // IPC::Channel::Listener implementation:
38 virtual void OnMessageReceived(const IPC::Message& msg); 38 virtual void OnMessageReceived(const IPC::Message& msg);
39 virtual void OnChannelConnected(int32 peer_pid); 39 virtual void OnChannelConnected(int32 peer_pid);
40 virtual void OnChannelError(); 40 virtual void OnChannelError();
41 41
42 // IPC message handlers. 42 // IPC message handlers.
43 void OnEnableCloudPrintProxy(const std::string& lsid); 43 void OnEnableCloudPrintProxy(const std::string& lsid);
44 void OnEnableCloudPrintProxyWithTokens(const std::string& cloud_print_token, 44 void OnEnableCloudPrintProxyWithTokens(const std::string& cloud_print_token,
45 const std::string& talk_token); 45 const std::string& talk_token);
46 void OnIsCloudPrintProxyEnabled(); 46 void OnIsCloudPrintProxyEnabled();
47 void OnDisableCloudPrintProxy();
47 48
48 void OnEnableRemotingWithTokens(const std::string& login, 49 #if defined(ENABLE_REMOTING)
49 const std::string& remoting_token, 50 void OnSetRemotingHostCredentials(const std::string& login,
50 const std::string& talk_token); 51 const std::string& talk_token);
51 void OnDisableCloudPrintProxy(); 52 void OnEnableRemotingHost();
53 void OnDisableRemotingHost();
54 void OnGetRemotingHostInfo();
55 #endif // defined(ENABLE_REMOTING)
56
52 void OnHello(); 57 void OnHello();
53 void OnShutdown(); 58 void OnShutdown();
54 void OnUpdateAvailable(); 59 void OnUpdateAvailable();
55 60
56 // Helper method to create the sync channel. 61 // Helper method to create the sync channel.
57 void CreateChannel(); 62 void CreateChannel();
58 63
59 std::string channel_name_; 64 std::string channel_name_;
60 scoped_ptr<IPC::SyncChannel> channel_; 65 scoped_ptr<IPC::SyncChannel> channel_;
61 // Indicates whether a client is currently connected to the channel. 66 // Indicates whether a client is currently connected to the channel.
62 bool client_connected_; 67 bool client_connected_;
63 68
64 // Allows threads other than the main thread to send sync messages. 69 // Allows threads other than the main thread to send sync messages.
65 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; 70 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
66 71
67 72
68 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer); 73 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer);
69 }; 74 };
70 75
71 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_ 76 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_
OLDNEW
« no previous file with comments | « chrome/service/remoting/chromoting_host_manager.cc ('k') | chrome/service/service_ipc_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698