| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Disconnect the IPC channel from the service process. | 70 // Disconnect the IPC channel from the service process. |
| 71 // Virtual for testing. | 71 // Virtual for testing. |
| 72 virtual void Disconnect(); | 72 virtual void Disconnect(); |
| 73 | 73 |
| 74 // IPC::Channel::Listener implementation. | 74 // IPC::Channel::Listener implementation. |
| 75 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 75 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 76 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 76 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| 77 virtual void OnChannelError() OVERRIDE; | 77 virtual void OnChannelError() OVERRIDE; |
| 78 | 78 |
| 79 // IPC::Channel::Sender implementation | 79 // IPC::Channel::Sender implementation |
| 80 virtual bool Send(IPC::Message* message); | 80 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 81 | 81 |
| 82 // content::NotificationObserver implementation. | 82 // content::NotificationObserver implementation. |
| 83 virtual void Observe(int type, | 83 virtual void Observe(int type, |
| 84 const content::NotificationSource& source, | 84 const content::NotificationSource& source, |
| 85 const content::NotificationDetails& details); | 85 const content::NotificationDetails& details) OVERRIDE; |
| 86 | 86 |
| 87 // Message handlers | 87 // Message handlers |
| 88 void OnCloudPrintProxyInfo( | 88 void OnCloudPrintProxyInfo( |
| 89 const cloud_print::CloudPrintProxyInfo& proxy_info); | 89 const cloud_print::CloudPrintProxyInfo& proxy_info); |
| 90 | 90 |
| 91 // Send a shutdown message to the service process. IPC channel will be | 91 // Send a shutdown message to the service process. IPC channel will be |
| 92 // destroyed after calling this method. | 92 // destroyed after calling this method. |
| 93 // Return true if the message was sent. | 93 // Return true if the message was sent. |
| 94 // Virtual for testing. | 94 // Virtual for testing. |
| 95 virtual bool Shutdown(); | 95 virtual bool Shutdown(); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 TaskList connect_failure_tasks_; | 161 TaskList connect_failure_tasks_; |
| 162 | 162 |
| 163 // Callback that gets invoked when a status message is received from | 163 // Callback that gets invoked when a status message is received from |
| 164 // the cloud print proxy. | 164 // the cloud print proxy. |
| 165 CloudPrintProxyInfoHandler cloud_print_info_callback_; | 165 CloudPrintProxyInfoHandler cloud_print_info_callback_; |
| 166 | 166 |
| 167 content::NotificationRegistrar registrar_; | 167 content::NotificationRegistrar registrar_; |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 #endif // CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ | 170 #endif // CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ |
| OLD | NEW |