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

Side by Side Diff: chrome/browser/browser_process.h

Issue 1803143002: Replace BrowserProces::AddRefModule/RemoveModule by ScopedKeepAlive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 // This interface is for managing the global services of the application. Each 5 // This interface is for managing the global services of the application. Each
6 // service is lazily created when requested the first time. The service getters 6 // service is lazily created when requested the first time. The service getters
7 // will return NULL if the service is not available, so callers must check for 7 // will return NULL if the service is not available, so callers must check for
8 // this condition. 8 // this condition.
9 9
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_ 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 virtual IconManager* icon_manager() = 0; 179 virtual IconManager* icon_manager() = 0;
180 180
181 virtual GLStringManager* gl_string_manager() = 0; 181 virtual GLStringManager* gl_string_manager() = 0;
182 182
183 virtual GpuModeManager* gpu_mode_manager() = 0; 183 virtual GpuModeManager* gpu_mode_manager() = 0;
184 184
185 virtual void CreateDevToolsHttpProtocolHandler(const std::string& ip, 185 virtual void CreateDevToolsHttpProtocolHandler(const std::string& ip,
186 uint16_t port) = 0; 186 uint16_t port) = 0;
187 virtual void CreateDevToolsAutoOpener() = 0; 187 virtual void CreateDevToolsAutoOpener() = 0;
188 188
189 virtual unsigned int AddRefModule() = 0; 189 // Called by KeepAliveRegistry to control Chrome's lifetime.
190 virtual unsigned int ReleaseModule() = 0; 190 virtual void Pin() = 0;
sky 2016/03/16 16:04:32 I don't like having these public as then anyone ca
dgn 2016/03/16 22:28:35 Good idea, it also allows to get rid of a lot of c
191 virtual void Unpin() = 0;
191 192
192 virtual bool IsShuttingDown() = 0; 193 virtual bool IsShuttingDown() = 0;
193 194
194 virtual printing::PrintJobManager* print_job_manager() = 0; 195 virtual printing::PrintJobManager* print_job_manager() = 0;
195 virtual printing::PrintPreviewDialogController* 196 virtual printing::PrintPreviewDialogController*
196 print_preview_dialog_controller() = 0; 197 print_preview_dialog_controller() = 0;
197 virtual printing::BackgroundPrintingManager* 198 virtual printing::BackgroundPrintingManager*
198 background_printing_manager() = 0; 199 background_printing_manager() = 0;
199 200
200 virtual IntranetRedirectDetector* intranet_redirect_detector() = 0; 201 virtual IntranetRedirectDetector* intranet_redirect_detector() = 0;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 virtual shell_integration::DefaultWebClientState 269 virtual shell_integration::DefaultWebClientState
269 CachedDefaultWebClientState() = 0; 270 CachedDefaultWebClientState() = 0;
270 271
271 private: 272 private:
272 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); 273 DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
273 }; 274 };
274 275
275 extern BrowserProcess* g_browser_process; 276 extern BrowserProcess* g_browser_process;
276 277
277 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ 278 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698