| 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_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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 bool update_available() const { return update_available_; } | 86 bool update_available() const { return update_available_; } |
| 87 | 87 |
| 88 // Called by the IPC server when a client disconnects. A return value of | 88 // Called by the IPC server when a client disconnects. A return value of |
| 89 // true indicates that the IPC server should continue listening for new | 89 // true indicates that the IPC server should continue listening for new |
| 90 // connections. | 90 // connections. |
| 91 bool HandleClientDisconnect(); | 91 bool HandleClientDisconnect(); |
| 92 | 92 |
| 93 CloudPrintProxy* GetCloudPrintProxy(); | 93 CloudPrintProxy* GetCloudPrintProxy(); |
| 94 | 94 |
| 95 // CloudPrintProxy::Client implementation. | 95 // CloudPrintProxy::Client implementation. |
| 96 virtual void OnCloudPrintProxyEnabled(bool persist_state); | 96 virtual void OnCloudPrintProxyEnabled(bool persist_state) OVERRIDE; |
| 97 virtual void OnCloudPrintProxyDisabled(bool persist_state); | 97 virtual void OnCloudPrintProxyDisabled(bool persist_state) OVERRIDE; |
| 98 | 98 |
| 99 ServiceURLRequestContextGetter* GetServiceURLRequestContextGetter(); | 99 ServiceURLRequestContextGetter* GetServiceURLRequestContextGetter(); |
| 100 | 100 |
| 101 private: | 101 private: |
| 102 // Schedule a call to ShutdownIfNeeded. | 102 // Schedule a call to ShutdownIfNeeded. |
| 103 void ScheduleShutdownCheck(); | 103 void ScheduleShutdownCheck(); |
| 104 | 104 |
| 105 // Shuts down the process if no services are enabled and no clients are | 105 // Shuts down the process if no services are enabled and no clients are |
| 106 // connected. | 106 // connected. |
| 107 void ShutdownIfNeeded(); | 107 void ShutdownIfNeeded(); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 DISALLOW_COPY_AND_ASSIGN(ServiceProcess); | 142 DISALLOW_COPY_AND_ASSIGN(ServiceProcess); |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 // Disable refcounting for runnable method because it is really not needed | 145 // Disable refcounting for runnable method because it is really not needed |
| 146 // when we post tasks on the main message loop. | 146 // when we post tasks on the main message loop. |
| 147 DISABLE_RUNNABLE_METHOD_REFCOUNT(ServiceProcess); | 147 DISABLE_RUNNABLE_METHOD_REFCOUNT(ServiceProcess); |
| 148 | 148 |
| 149 extern ServiceProcess* g_service_process; | 149 extern ServiceProcess* g_service_process; |
| 150 | 150 |
| 151 #endif // CHROME_SERVICE_SERVICE_PROCESS_H_ | 151 #endif // CHROME_SERVICE_SERVICE_PROCESS_H_ |
| OLD | NEW |