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 30 matching lines...) Expand all Loading... |
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 OnEnableCloudPrintProxyWithRobot( | 45 void OnEnableCloudPrintProxyWithRobot( |
46 const std::string& robot_auth_code, | 46 const std::string& robot_auth_code, |
47 const std::string& robot_email, | 47 const std::string& robot_email, |
48 const std::string& user_email); | 48 const std::string& user_email); |
49 void OnGetCloudPrintProxyInfo(); | 49 void OnGetCloudPrintProxyInfo(); |
50 void OnDisableCloudPrintProxy(); | 50 void OnDisableCloudPrintProxy(); |
| 51 void OnEnableVirtualDriver(); |
| 52 void OnDisableVirtualDriver(); |
51 | 53 |
52 void OnShutdown(); | 54 void OnShutdown(); |
53 void OnUpdateAvailable(); | 55 void OnUpdateAvailable(); |
54 | 56 |
55 // Helper method to create the sync channel. | 57 // Helper method to create the sync channel. |
56 void CreateChannel(); | 58 void CreateChannel(); |
57 | 59 |
58 IPC::ChannelHandle channel_handle_; | 60 IPC::ChannelHandle channel_handle_; |
59 scoped_ptr<IPC::SyncChannel> channel_; | 61 scoped_ptr<IPC::SyncChannel> channel_; |
60 // Indicates whether a client is currently connected to the channel. | 62 // Indicates whether a client is currently connected to the channel. |
61 bool client_connected_; | 63 bool client_connected_; |
62 | 64 |
63 // Allows threads other than the main thread to send sync messages. | 65 // Allows threads other than the main thread to send sync messages. |
64 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 66 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
65 | 67 |
66 | 68 |
67 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer); | 69 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer); |
68 }; | 70 }; |
69 | 71 |
70 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_ | 72 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_ |
OLD | NEW |