Chromium Code Reviews| 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 // 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 262 virtual bool created_local_state() const = 0; | 262 virtual bool created_local_state() const = 0; |
| 263 | 263 |
| 264 #if defined(ENABLE_WEBRTC) | 264 #if defined(ENABLE_WEBRTC) |
| 265 virtual WebRtcLogUploader* webrtc_log_uploader() = 0; | 265 virtual WebRtcLogUploader* webrtc_log_uploader() = 0; |
| 266 #endif | 266 #endif |
| 267 | 267 |
| 268 virtual network_time::NetworkTimeTracker* network_time_tracker() = 0; | 268 virtual network_time::NetworkTimeTracker* network_time_tracker() = 0; |
| 269 | 269 |
| 270 virtual gcm::GCMDriver* gcm_driver() = 0; | 270 virtual gcm::GCMDriver* gcm_driver() = 0; |
| 271 | 271 |
| 272 // Returns the tab manager if it exists, null otherwise. | 272 // Returns the tab manager if it exists, or create a new one to return |
| 273 // otherwise. Returns nullptr if invoked from a non-supported platform. | |
|
Georges Khalil
2016/08/15 21:48:24
I would simplify this, I don't think it's worth me
| |
| 273 virtual memory::TabManager* GetTabManager() = 0; | 274 virtual memory::TabManager* GetTabManager() = 0; |
| 274 | 275 |
| 275 // Returns the default web client state of Chrome (i.e., was it the user's | 276 // Returns the default web client state of Chrome (i.e., was it the user's |
| 276 // default browser) at the time a previous check was made sometime between | 277 // default browser) at the time a previous check was made sometime between |
| 277 // process startup and now. | 278 // process startup and now. |
| 278 virtual shell_integration::DefaultWebClientState | 279 virtual shell_integration::DefaultWebClientState |
| 279 CachedDefaultWebClientState() = 0; | 280 CachedDefaultWebClientState() = 0; |
| 280 | 281 |
| 281 private: | 282 private: |
| 282 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 283 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 283 }; | 284 }; |
| 284 | 285 |
| 285 extern BrowserProcess* g_browser_process; | 286 extern BrowserProcess* g_browser_process; |
| 286 | 287 |
| 287 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 288 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |