| 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_PROCESS_H_ | 5 #ifndef CHROME_SERVICE_SERVICE_PROCESS_H_ |
| 6 #define CHROME_SERVICE_SERVICE_PROCESS_H_ | 6 #define CHROME_SERVICE_SERVICE_PROCESS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 bool update_available() const { return update_available_; } | 75 bool update_available() const { return update_available_; } |
| 76 | 76 |
| 77 // Called by the IPC server when a client disconnects. A return value of | 77 // Called by the IPC server when a client disconnects. A return value of |
| 78 // true indicates that the IPC server should continue listening for new | 78 // true indicates that the IPC server should continue listening for new |
| 79 // connections. | 79 // connections. |
| 80 bool HandleClientDisconnect(); | 80 bool HandleClientDisconnect(); |
| 81 | 81 |
| 82 CloudPrintProxy* GetCloudPrintProxy(); | 82 CloudPrintProxy* GetCloudPrintProxy(); |
| 83 | 83 |
| 84 // CloudPrintProxy::Client implementation. | 84 // CloudPrintProxy::Client implementation. |
| 85 virtual void OnCloudPrintProxyEnabled(); | 85 virtual void OnCloudPrintProxyEnabled(bool persist_state); |
| 86 virtual void OnCloudPrintProxyDisabled(); | 86 virtual void OnCloudPrintProxyDisabled(bool persist_state); |
| 87 | 87 |
| 88 // ChromotingHostManager::Observer interface. | 88 // ChromotingHostManager::Observer interface. |
| 89 virtual void OnRemotingHostEnabled(); | 89 virtual void OnRemotingHostEnabled(); |
| 90 virtual void OnRemotingHostDisabled(); | 90 virtual void OnRemotingHostDisabled(); |
| 91 | 91 |
| 92 #if defined(ENABLE_REMOTING) | 92 #if defined(ENABLE_REMOTING) |
| 93 // Return the reference to the chromoting host only if it has started. | 93 // Return the reference to the chromoting host only if it has started. |
| 94 remoting::ChromotingHostManager* remoting_host_manager() { | 94 remoting::ChromotingHostManager* remoting_host_manager() { |
| 95 return remoting_host_manager_; | 95 return remoting_host_manager_; |
| 96 } | 96 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 #if defined(ENABLE_REMOTING) | 131 #if defined(ENABLE_REMOTING) |
| 132 scoped_refptr<remoting::ChromotingHostManager> remoting_host_manager_; | 132 scoped_refptr<remoting::ChromotingHostManager> remoting_host_manager_; |
| 133 #endif | 133 #endif |
| 134 | 134 |
| 135 DISALLOW_COPY_AND_ASSIGN(ServiceProcess); | 135 DISALLOW_COPY_AND_ASSIGN(ServiceProcess); |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 extern ServiceProcess* g_service_process; | 138 extern ServiceProcess* g_service_process; |
| 139 | 139 |
| 140 #endif // CHROME_SERVICE_SERVICE_PROCESS_H_ | 140 #endif // CHROME_SERVICE_SERVICE_PROCESS_H_ |
| OLD | NEW |