| 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_PROCESS_H_ | 5 #ifndef CHROME_SERVICE_SERVICE_PROCESS_H_ |
| 6 #define CHROME_SERVICE_SERVICE_PROCESS_H_ | 6 #define CHROME_SERVICE_SERVICE_PROCESS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 private: | 98 private: |
| 99 friend class TestServiceProcess; | 99 friend class TestServiceProcess; |
| 100 | 100 |
| 101 // Schedule a call to ShutdownIfNeeded. | 101 // Schedule a call to ShutdownIfNeeded. |
| 102 void ScheduleShutdownCheck(); | 102 void ScheduleShutdownCheck(); |
| 103 | 103 |
| 104 // Shuts down the process if no services are enabled and no clients are | 104 // Shuts down the process if no services are enabled and no clients are |
| 105 // connected. | 105 // connected. |
| 106 void ShutdownIfNeeded(); | 106 void ShutdownIfNeeded(); |
| 107 | 107 |
| 108 // Schedule a call to CloudPrintPolicyCheckIfNeeded. | |
| 109 void ScheduleCloudPrintPolicyCheck(); | |
| 110 | |
| 111 // Launch the browser for a policy check if we're not connected. | |
| 112 void CloudPrintPolicyCheckIfNeeded(); | |
| 113 | |
| 114 // Called exactly ONCE per process instance for each service that gets | 108 // Called exactly ONCE per process instance for each service that gets |
| 115 // enabled in this process. | 109 // enabled in this process. |
| 116 void OnServiceEnabled(); | 110 void OnServiceEnabled(); |
| 117 | 111 |
| 118 // Called exactly ONCE per process instance for each service that gets | 112 // Called exactly ONCE per process instance for each service that gets |
| 119 // disabled in this process (note that shutdown != disabled). | 113 // disabled in this process (note that shutdown != disabled). |
| 120 void OnServiceDisabled(); | 114 void OnServiceDisabled(); |
| 121 | 115 |
| 122 // Terminate forces the service process to quit. | 116 // Terminate forces the service process to quit. |
| 123 void Terminate(); | 117 void Terminate(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 144 bool update_available_; | 138 bool update_available_; |
| 145 | 139 |
| 146 scoped_refptr<ServiceURLRequestContextGetter> request_context_getter_; | 140 scoped_refptr<ServiceURLRequestContextGetter> request_context_getter_; |
| 147 | 141 |
| 148 DISALLOW_COPY_AND_ASSIGN(ServiceProcess); | 142 DISALLOW_COPY_AND_ASSIGN(ServiceProcess); |
| 149 }; | 143 }; |
| 150 | 144 |
| 151 extern ServiceProcess* g_service_process; | 145 extern ServiceProcess* g_service_process; |
| 152 | 146 |
| 153 #endif // CHROME_SERVICE_SERVICE_PROCESS_H_ | 147 #endif // CHROME_SERVICE_SERVICE_PROCESS_H_ |
| OLD | NEW |