| OLD | NEW |
| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 const std::string& talk_token); | 45 const std::string& talk_token); |
| 46 void OnIsCloudPrintProxyEnabled(); | 46 void OnIsCloudPrintProxyEnabled(); |
| 47 void OnDisableCloudPrintProxy(); | 47 void OnDisableCloudPrintProxy(); |
| 48 | 48 |
| 49 #if defined(ENABLE_REMOTING) | 49 #if defined(ENABLE_REMOTING) |
| 50 void OnSetRemotingHostCredentials(const std::string& login, | 50 void OnSetRemotingHostCredentials(const std::string& login, |
| 51 const std::string& talk_token); | 51 const std::string& talk_token); |
| 52 void OnEnableRemotingHost(); | 52 void OnEnableRemotingHost(); |
| 53 void OnDisableRemotingHost(); | 53 void OnDisableRemotingHost(); |
| 54 void OnGetRemotingHostInfo(); | 54 void OnGetRemotingHostInfo(); |
| 55 |
| 56 // Sends HostInfo message to the browser. It must is called when we |
| 57 // receive GetRemotingHostInfo message or when status of the host |
| 58 // is changed. |
| 59 void SendRemotingHostInfo(); |
| 55 #endif // defined(ENABLE_REMOTING) | 60 #endif // defined(ENABLE_REMOTING) |
| 56 | 61 |
| 57 void OnShutdown(); | 62 void OnShutdown(); |
| 58 void OnUpdateAvailable(); | 63 void OnUpdateAvailable(); |
| 59 | 64 |
| 60 // Helper method to create the sync channel. | 65 // Helper method to create the sync channel. |
| 61 void CreateChannel(); | 66 void CreateChannel(); |
| 62 | 67 |
| 63 std::string channel_name_; | 68 std::string channel_name_; |
| 64 scoped_ptr<IPC::SyncChannel> channel_; | 69 scoped_ptr<IPC::SyncChannel> channel_; |
| 65 // Indicates whether a client is currently connected to the channel. | 70 // Indicates whether a client is currently connected to the channel. |
| 66 bool client_connected_; | 71 bool client_connected_; |
| 67 | 72 |
| 68 // Allows threads other than the main thread to send sync messages. | 73 // Allows threads other than the main thread to send sync messages. |
| 69 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 74 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
| 70 | 75 |
| 71 | 76 |
| 72 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer); | 77 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer); |
| 73 }; | 78 }; |
| 74 | 79 |
| 75 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_ | 80 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_ |
| OLD | NEW |