| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 virtual void OnChannelConnected(int32 peer_pid); | 40 virtual void OnChannelConnected(int32 peer_pid); |
| 41 virtual void OnChannelError(); | 41 virtual void OnChannelError(); |
| 42 | 42 |
| 43 // IPC message handlers. | 43 // IPC message handlers. |
| 44 void OnEnableCloudPrintProxy(const std::string& lsid); | 44 void OnEnableCloudPrintProxy(const std::string& lsid); |
| 45 void OnEnableCloudPrintProxyWithTokens(const std::string& cloud_print_token, | 45 void OnEnableCloudPrintProxyWithTokens(const std::string& cloud_print_token, |
| 46 const std::string& talk_token); | 46 const std::string& talk_token); |
| 47 void OnIsCloudPrintProxyEnabled(); | 47 void OnIsCloudPrintProxyEnabled(); |
| 48 void OnDisableCloudPrintProxy(); | 48 void OnDisableCloudPrintProxy(); |
| 49 | 49 |
| 50 #if defined(ENABLE_REMOTING) | |
| 51 void OnSetRemotingHostCredentials(const std::string& login, | |
| 52 const std::string& talk_token); | |
| 53 void OnEnableRemotingHost(); | |
| 54 void OnDisableRemotingHost(); | |
| 55 void OnGetRemotingHostInfo(); | |
| 56 | |
| 57 // Sends HostInfo message to the browser. It must is called when we | |
| 58 // receive GetRemotingHostInfo message or when status of the host | |
| 59 // is changed. | |
| 60 void SendRemotingHostInfo(); | |
| 61 #endif // defined(ENABLE_REMOTING) | |
| 62 | |
| 63 void OnShutdown(); | 50 void OnShutdown(); |
| 64 void OnUpdateAvailable(); | 51 void OnUpdateAvailable(); |
| 65 | 52 |
| 66 // Helper method to create the sync channel. | 53 // Helper method to create the sync channel. |
| 67 void CreateChannel(); | 54 void CreateChannel(); |
| 68 | 55 |
| 69 IPC::ChannelHandle channel_handle_; | 56 IPC::ChannelHandle channel_handle_; |
| 70 scoped_ptr<IPC::SyncChannel> channel_; | 57 scoped_ptr<IPC::SyncChannel> channel_; |
| 71 // Indicates whether a client is currently connected to the channel. | 58 // Indicates whether a client is currently connected to the channel. |
| 72 bool client_connected_; | 59 bool client_connected_; |
| 73 | 60 |
| 74 // Allows threads other than the main thread to send sync messages. | 61 // Allows threads other than the main thread to send sync messages. |
| 75 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 62 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
| 76 | 63 |
| 77 | 64 |
| 78 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer); | 65 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer); |
| 79 }; | 66 }; |
| 80 | 67 |
| 81 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_ | 68 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_ |
| OLD | NEW |