| 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 // When each service is created, we set a flag indicating this. At this point, | 5 // When each service is created, we set a flag indicating this. At this point, |
| 6 // the service initialization could fail or succeed. This allows us to remember | 6 // the service initialization could fail or succeed. This allows us to remember |
| 7 // if we tried to create a service, and not try creating it over and over if | 7 // if we tried to create a service, and not try creating it over and over if |
| 8 // the creation failed. | 8 // the creation failed. |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| 12 | 12 |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
| 16 #include "base/debug/stack_trace.h" | 16 #include "base/debug/stack_trace.h" |
| 17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
| 19 #include "base/prefs/pref_change_registrar.h" | 19 #include "base/prefs/pref_change_registrar.h" |
| 20 #include "base/threading/non_thread_safe.h" | 20 #include "base/threading/non_thread_safe.h" |
| 21 #include "base/timer/timer.h" | 21 #include "base/timer/timer.h" |
| 22 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
| 23 | 23 |
| 24 class ChromeNetLog; | 24 class ChromeNetLog; |
| 25 class ChromeResourceDispatcherHostDelegate; | 25 class ChromeResourceDispatcherHostDelegate; |
| 26 class MetricsServicesManager; | |
| 27 class RemoteDebuggingServer; | 26 class RemoteDebuggingServer; |
| 28 class PrefRegistrySimple; | 27 class PrefRegistrySimple; |
| 29 class PromoResourceService; | 28 class PromoResourceService; |
| 30 | 29 |
| 31 #if defined(ENABLE_PLUGIN_INSTALLATION) | 30 #if defined(ENABLE_PLUGIN_INSTALLATION) |
| 32 class PluginsResourceService; | 31 class PluginsResourceService; |
| 33 #endif | 32 #endif |
| 34 | 33 |
| 35 namespace base { | 34 namespace base { |
| 36 class CommandLine; | 35 class CommandLine; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // ChromeBrowserMain based on notifications from the content | 70 // ChromeBrowserMain based on notifications from the content |
| 72 // framework, rather than in the destructor, so that we can | 71 // framework, rather than in the destructor, so that we can |
| 73 // interleave cleanup with threads being stopped. | 72 // interleave cleanup with threads being stopped. |
| 74 void StartTearDown(); | 73 void StartTearDown(); |
| 75 void PostDestroyThreads(); | 74 void PostDestroyThreads(); |
| 76 | 75 |
| 77 // BrowserProcess implementation. | 76 // BrowserProcess implementation. |
| 78 virtual void ResourceDispatcherHostCreated() OVERRIDE; | 77 virtual void ResourceDispatcherHostCreated() OVERRIDE; |
| 79 virtual void EndSession() OVERRIDE; | 78 virtual void EndSession() OVERRIDE; |
| 80 virtual MetricsServicesManager* GetMetricsServicesManager() OVERRIDE; | 79 virtual MetricsServicesManager* GetMetricsServicesManager() OVERRIDE; |
| 81 virtual MetricsService* metrics_service() OVERRIDE; | 80 virtual metrics::MetricsService* metrics_service() OVERRIDE; |
| 82 virtual rappor::RapporService* rappor_service() OVERRIDE; | 81 virtual rappor::RapporService* rappor_service() OVERRIDE; |
| 83 virtual IOThread* io_thread() OVERRIDE; | 82 virtual IOThread* io_thread() OVERRIDE; |
| 84 virtual WatchDogThread* watchdog_thread() OVERRIDE; | 83 virtual WatchDogThread* watchdog_thread() OVERRIDE; |
| 85 virtual ProfileManager* profile_manager() OVERRIDE; | 84 virtual ProfileManager* profile_manager() OVERRIDE; |
| 86 virtual PrefService* local_state() OVERRIDE; | 85 virtual PrefService* local_state() OVERRIDE; |
| 87 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; | 86 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; |
| 88 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; | 87 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; |
| 89 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; | 88 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; |
| 90 virtual extensions::EventRouterForwarder* | 89 virtual extensions::EventRouterForwarder* |
| 91 extension_event_router_forwarder() OVERRIDE; | 90 extension_event_router_forwarder() OVERRIDE; |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 #endif | 294 #endif |
| 296 | 295 |
| 297 scoped_ptr<network_time::NetworkTimeTracker> network_time_tracker_; | 296 scoped_ptr<network_time::NetworkTimeTracker> network_time_tracker_; |
| 298 | 297 |
| 299 scoped_ptr<gcm::GCMDriver> gcm_driver_; | 298 scoped_ptr<gcm::GCMDriver> gcm_driver_; |
| 300 | 299 |
| 301 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 300 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 302 }; | 301 }; |
| 303 | 302 |
| 304 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 303 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |