| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 // IPC::Channel::Listener implementation: | 35 // IPC::Channel::Listener implementation: |
| 36 virtual void OnMessageReceived(const IPC::Message& msg); | 36 virtual void OnMessageReceived(const IPC::Message& msg); |
| 37 virtual void OnChannelError(); | 37 virtual void OnChannelError(); |
| 38 | 38 |
| 39 // IPC message handlers. | 39 // IPC message handlers. |
| 40 void OnEnableCloudPrintProxy(const std::string& lsid); | 40 void OnEnableCloudPrintProxy(const std::string& lsid); |
| 41 void OnEnableCloudPrintProxyWithTokens(const std::string& cloud_print_token, | 41 void OnEnableCloudPrintProxyWithTokens(const std::string& cloud_print_token, |
| 42 const std::string& talk_token); | 42 const std::string& talk_token); |
| 43 void OnIsCloudPrintProxyEnabled(bool* is_enabled, std::string* email); | 43 void OnIsCloudPrintProxyEnabled(); |
| 44 | 44 |
| 45 void OnEnableRemotingWithTokens(const std::string& login, | 45 void OnEnableRemotingWithTokens(const std::string& login, |
| 46 const std::string& remoting_token, | 46 const std::string& remoting_token, |
| 47 const std::string& talk_token); | 47 const std::string& talk_token); |
| 48 void OnDisableCloudPrintProxy(); | 48 void OnDisableCloudPrintProxy(); |
| 49 void OnHello(); | 49 void OnHello(); |
| 50 void OnShutdown(); | 50 void OnShutdown(); |
| 51 | 51 |
| 52 // Helper method to create the sync channel. | 52 // Helper method to create the sync channel. |
| 53 void CreateChannel(); | 53 void CreateChannel(); |
| 54 | 54 |
| 55 std::string channel_name_; | 55 std::string channel_name_; |
| 56 scoped_ptr<IPC::SyncChannel> channel_; | 56 scoped_ptr<IPC::SyncChannel> channel_; |
| 57 | 57 |
| 58 // Allows threads other than the main thread to send sync messages. | 58 // Allows threads other than the main thread to send sync messages. |
| 59 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 59 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
| 60 | 60 |
| 61 | 61 |
| 62 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer); | 62 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_ | 65 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_ |
| OLD | NEW |