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 class PrefServiceSimple; |
| 29 class PromoResourceService; |
29 | 30 |
30 #if defined(ENABLE_PLUGIN_INSTALLATION) | 31 #if defined(ENABLE_PLUGIN_INSTALLATION) |
31 class PluginsResourceService; | 32 class PluginsResourceService; |
32 #endif | 33 #endif |
33 | 34 |
34 namespace base { | 35 namespace base { |
35 class SequencedTaskRunner; | 36 class SequencedTaskRunner; |
36 } | 37 } |
37 | 38 |
38 namespace policy { | 39 namespace policy { |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 // Lives here so can safely log events on shutdown. | 251 // Lives here so can safely log events on shutdown. |
251 scoped_ptr<ChromeNetLog> net_log_; | 252 scoped_ptr<ChromeNetLog> net_log_; |
252 | 253 |
253 // Ordered before resource_dispatcher_host_delegate_ due to destruction | 254 // Ordered before resource_dispatcher_host_delegate_ due to destruction |
254 // ordering. | 255 // ordering. |
255 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; | 256 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; |
256 | 257 |
257 scoped_ptr<ChromeResourceDispatcherHostDelegate> | 258 scoped_ptr<ChromeResourceDispatcherHostDelegate> |
258 resource_dispatcher_host_delegate_; | 259 resource_dispatcher_host_delegate_; |
259 | 260 |
| 261 scoped_refptr<PromoResourceService> promo_resource_service_; |
| 262 |
260 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 263 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
261 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; | 264 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; |
262 | 265 |
263 // Gets called by autoupdate timer to see if browser needs restart and can be | 266 // Gets called by autoupdate timer to see if browser needs restart and can be |
264 // restarted, and if that's the case, restarts the browser. | 267 // restarted, and if that's the case, restarts the browser. |
265 void OnAutoupdateTimer(); | 268 void OnAutoupdateTimer(); |
266 bool CanAutorestartForUpdate() const; | 269 bool CanAutorestartForUpdate() const; |
267 void RestartBackgroundInstance(); | 270 void RestartBackgroundInstance(); |
268 #endif // defined(OS_WIN) || defined(OS_LINUX) && !defined(OS_CHROMEOS) | 271 #endif // defined(OS_WIN) || defined(OS_LINUX) && !defined(OS_CHROMEOS) |
269 | 272 |
(...skipping 18 matching lines...) Expand all Loading... |
288 #endif | 291 #endif |
289 | 292 |
290 // TODO(eroman): Remove this when done debugging 113031. This tracks | 293 // TODO(eroman): Remove this when done debugging 113031. This tracks |
291 // the callstack which released the final module reference count. | 294 // the callstack which released the final module reference count. |
292 base::debug::StackTrace release_last_reference_callstack_; | 295 base::debug::StackTrace release_last_reference_callstack_; |
293 | 296 |
294 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 297 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
295 }; | 298 }; |
296 | 299 |
297 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 300 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |