OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual void OnChannelError() OVERRIDE; | 53 virtual void OnChannelError() OVERRIDE; |
54 | 54 |
55 // IPC message handlers. | 55 // IPC message handlers. |
56 void OnEnableCloudPrintProxyWithRobot( | 56 void OnEnableCloudPrintProxyWithRobot( |
57 const std::string& robot_auth_code, | 57 const std::string& robot_auth_code, |
58 const std::string& robot_email, | 58 const std::string& robot_email, |
59 const std::string& user_email, | 59 const std::string& user_email, |
60 const base::DictionaryValue& user_settings); | 60 const base::DictionaryValue& user_settings); |
61 void OnGetCloudPrintProxyInfo(); | 61 void OnGetCloudPrintProxyInfo(); |
62 void OnGetHistograms(); | 62 void OnGetHistograms(); |
| 63 void OnGetPrinters(); |
63 void OnDisableCloudPrintProxy(); | 64 void OnDisableCloudPrintProxy(); |
64 | 65 |
65 void OnShutdown(); | 66 void OnShutdown(); |
66 void OnUpdateAvailable(); | 67 void OnUpdateAvailable(); |
67 | 68 |
68 // Helper method to create the sync channel. | 69 // Helper method to create the sync channel. |
69 void CreateChannel(); | 70 void CreateChannel(); |
70 | 71 |
71 IPC::ChannelHandle channel_handle_; | 72 IPC::ChannelHandle channel_handle_; |
72 scoped_ptr<IPC::SyncChannel> channel_; | 73 scoped_ptr<IPC::SyncChannel> channel_; |
73 // Indicates whether a client is currently connected to the channel. | 74 // Indicates whether a client is currently connected to the channel. |
74 bool client_connected_; | 75 bool client_connected_; |
75 | 76 |
76 // Allows threads other than the main thread to send sync messages. | 77 // Allows threads other than the main thread to send sync messages. |
77 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 78 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
78 | 79 |
79 // Calculates histograms deltas. | 80 // Calculates histograms deltas. |
80 scoped_ptr<base::HistogramDeltaSerialization> histogram_delta_serializer_; | 81 scoped_ptr<base::HistogramDeltaSerialization> histogram_delta_serializer_; |
81 | 82 |
82 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer); | 83 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer); |
83 }; | 84 }; |
84 | 85 |
85 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_ | 86 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_ |
OLD | NEW |