| 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/public/pref_change_registrar.h" | 19 #include "base/prefs/public/pref_change_registrar.h" |
| 20 #include "base/threading/non_thread_safe.h" | 20 #include "base/threading/non_thread_safe.h" |
| 21 #include "base/timer.h" | 21 #include "base/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 CommandLine; | 26 class CommandLine; |
| 27 class RemoteDebuggingServer; | 27 class RemoteDebuggingServer; |
| 28 class PrefServiceSimple; |
| 28 | 29 |
| 29 #if defined(ENABLE_PLUGIN_INSTALLATION) | 30 #if defined(ENABLE_PLUGIN_INSTALLATION) |
| 30 class PluginsResourceService; | 31 class PluginsResourceService; |
| 31 #endif | 32 #endif |
| 32 | 33 |
| 33 namespace base { | 34 namespace base { |
| 34 class SequencedTaskRunner; | 35 class SequencedTaskRunner; |
| 35 } | 36 } |
| 36 | 37 |
| 37 namespace policy { | 38 namespace policy { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 67 void StartTearDown(); | 68 void StartTearDown(); |
| 68 void PostDestroyThreads(); | 69 void PostDestroyThreads(); |
| 69 | 70 |
| 70 // BrowserProcess implementation. | 71 // BrowserProcess implementation. |
| 71 virtual void ResourceDispatcherHostCreated() OVERRIDE; | 72 virtual void ResourceDispatcherHostCreated() OVERRIDE; |
| 72 virtual void EndSession() OVERRIDE; | 73 virtual void EndSession() OVERRIDE; |
| 73 virtual MetricsService* metrics_service() OVERRIDE; | 74 virtual MetricsService* metrics_service() OVERRIDE; |
| 74 virtual IOThread* io_thread() OVERRIDE; | 75 virtual IOThread* io_thread() OVERRIDE; |
| 75 virtual WatchDogThread* watchdog_thread() OVERRIDE; | 76 virtual WatchDogThread* watchdog_thread() OVERRIDE; |
| 76 virtual ProfileManager* profile_manager() OVERRIDE; | 77 virtual ProfileManager* profile_manager() OVERRIDE; |
| 77 virtual PrefService* local_state() OVERRIDE; | 78 virtual PrefServiceSimple* local_state() OVERRIDE; |
| 78 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; | 79 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; |
| 79 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; | 80 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; |
| 80 #if defined(OS_CHROMEOS) | 81 #if defined(OS_CHROMEOS) |
| 81 virtual chromeos::OomPriorityManager* oom_priority_manager() OVERRIDE; | 82 virtual chromeos::OomPriorityManager* oom_priority_manager() OVERRIDE; |
| 82 #endif // defined(OS_CHROMEOS) | 83 #endif // defined(OS_CHROMEOS) |
| 83 virtual extensions::EventRouterForwarder* | 84 virtual extensions::EventRouterForwarder* |
| 84 extension_event_router_forwarder() OVERRIDE; | 85 extension_event_router_forwarder() OVERRIDE; |
| 85 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; | 86 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; |
| 86 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE; | 87 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE; |
| 87 virtual policy::PolicyService* policy_service() OVERRIDE; | 88 virtual policy::PolicyService* policy_service() OVERRIDE; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 167 |
| 167 // Must be destroyed after |local_state_|. | 168 // Must be destroyed after |local_state_|. |
| 168 // This is a stub when policy is not enabled. Otherwise, the PolicyService | 169 // This is a stub when policy is not enabled. Otherwise, the PolicyService |
| 169 // is owned by the |browser_policy_connector_| and this is not used. | 170 // is owned by the |browser_policy_connector_| and this is not used. |
| 170 scoped_ptr<policy::PolicyService> policy_service_; | 171 scoped_ptr<policy::PolicyService> policy_service_; |
| 171 | 172 |
| 172 bool created_profile_manager_; | 173 bool created_profile_manager_; |
| 173 scoped_ptr<ProfileManager> profile_manager_; | 174 scoped_ptr<ProfileManager> profile_manager_; |
| 174 | 175 |
| 175 bool created_local_state_; | 176 bool created_local_state_; |
| 176 scoped_ptr<PrefService> local_state_; | 177 scoped_ptr<PrefServiceSimple> local_state_; |
| 177 | 178 |
| 178 bool created_icon_manager_; | 179 bool created_icon_manager_; |
| 179 scoped_ptr<IconManager> icon_manager_; | 180 scoped_ptr<IconManager> icon_manager_; |
| 180 | 181 |
| 181 scoped_refptr<extensions::EventRouterForwarder> | 182 scoped_refptr<extensions::EventRouterForwarder> |
| 182 extension_event_router_forwarder_; | 183 extension_event_router_forwarder_; |
| 183 | 184 |
| 184 #if !defined(OS_ANDROID) | 185 #if !defined(OS_ANDROID) |
| 185 scoped_ptr<RemoteDebuggingServer> remote_debugging_server_; | 186 scoped_ptr<RemoteDebuggingServer> remote_debugging_server_; |
| 186 | 187 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 #endif | 285 #endif |
| 285 | 286 |
| 286 // TODO(eroman): Remove this when done debugging 113031. This tracks | 287 // TODO(eroman): Remove this when done debugging 113031. This tracks |
| 287 // the callstack which released the final module reference count. | 288 // the callstack which released the final module reference count. |
| 288 base::debug::StackTrace release_last_reference_callstack_; | 289 base::debug::StackTrace release_last_reference_callstack_; |
| 289 | 290 |
| 290 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 291 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 291 }; | 292 }; |
| 292 | 293 |
| 293 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 294 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |