Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: chrome/service/service_process.h

Issue 1078213004: Remove --check-cloud-print-connector-policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sat Apr 11 02:29:11 PDT 2015 Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/service/cloud_print/cloud_print_proxy.cc ('k') | chrome/service/service_process.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_proxy.cc ('k') | chrome/service/service_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698