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_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ | 5 #ifndef CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ |
6 #define CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ | 6 #define CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // IPC::Channel::Listener implementation. | 70 // IPC::Channel::Listener implementation. |
71 virtual bool OnMessageReceived(const IPC::Message& message); | 71 virtual bool OnMessageReceived(const IPC::Message& message); |
72 virtual void OnChannelConnected(int32 peer_pid); | 72 virtual void OnChannelConnected(int32 peer_pid); |
73 virtual void OnChannelError(); | 73 virtual void OnChannelError(); |
74 | 74 |
75 // IPC::Channel::Sender implementation | 75 // IPC::Channel::Sender implementation |
76 virtual bool Send(IPC::Message* message); | 76 virtual bool Send(IPC::Message* message); |
77 | 77 |
78 // NotificationObserver implementation. | 78 // NotificationObserver implementation. |
79 virtual void Observe(NotificationType type, | 79 virtual void Observe(int type, |
80 const NotificationSource& source, | 80 const NotificationSource& source, |
81 const NotificationDetails& details); | 81 const NotificationDetails& details); |
82 | 82 |
83 // Message handlers | 83 // Message handlers |
84 void OnCloudPrintProxyInfo( | 84 void OnCloudPrintProxyInfo( |
85 const cloud_print::CloudPrintProxyInfo& proxy_info); | 85 const cloud_print::CloudPrintProxyInfo& proxy_info); |
86 | 86 |
87 // Send a shutdown message to the service process. IPC channel will be | 87 // Send a shutdown message to the service process. IPC channel will be |
88 // destroyed after calling this method. | 88 // destroyed after calling this method. |
89 // Return true if the message was sent. | 89 // Return true if the message was sent. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 TaskList connect_failure_tasks_; | 158 TaskList connect_failure_tasks_; |
159 | 159 |
160 // Callback that gets invoked when a status message is received from | 160 // Callback that gets invoked when a status message is received from |
161 // the cloud print proxy. | 161 // the cloud print proxy. |
162 scoped_ptr<CloudPrintProxyInfoHandler> cloud_print_info_callback_; | 162 scoped_ptr<CloudPrintProxyInfoHandler> cloud_print_info_callback_; |
163 | 163 |
164 NotificationRegistrar registrar_; | 164 NotificationRegistrar registrar_; |
165 }; | 165 }; |
166 | 166 |
167 #endif // CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ | 167 #endif // CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ |
OLD | NEW |