OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_ |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 public content::NotificationObserver { | 44 public content::NotificationObserver { |
45 public: | 45 public: |
46 explicit BrowserProcessImpl(const CommandLine& command_line); | 46 explicit BrowserProcessImpl(const CommandLine& command_line); |
47 virtual ~BrowserProcessImpl(); | 47 virtual ~BrowserProcessImpl(); |
48 | 48 |
49 // Some of our startup is interleaved with thread creation, driven | 49 // Some of our startup is interleaved with thread creation, driven |
50 // by these functions. | 50 // by these functions. |
51 void PreStartThread(content::BrowserThread::ID identifier); | 51 void PreStartThread(content::BrowserThread::ID identifier); |
52 void PostStartThread(content::BrowserThread::ID identifier); | 52 void PostStartThread(content::BrowserThread::ID identifier); |
53 | 53 |
| 54 // Called after the threads have been created but before the message loops |
| 55 // starts running. Allows the browser process to do any initialization that |
| 56 // requires all threads running. |
| 57 void PreMainMessageLoopRun(); |
| 58 |
54 // Most cleanup is done by these functions, driven from | 59 // Most cleanup is done by these functions, driven from |
55 // ChromeBrowserMain based on notifications from the content | 60 // ChromeBrowserMain based on notifications from the content |
56 // framework, rather than in the destructor, so that we can | 61 // framework, rather than in the destructor, so that we can |
57 // interleave cleanup with threads being stopped. | 62 // interleave cleanup with threads being stopped. |
58 void StartTearDown(); | 63 void StartTearDown(); |
59 void PreStopThread(content::BrowserThread::ID identifier); | 64 void PreStopThread(content::BrowserThread::ID identifier); |
60 void PostStopThread(content::BrowserThread::ID identifier); | 65 void PostStopThread(content::BrowserThread::ID identifier); |
61 | 66 |
62 // BrowserProcess methods | 67 // BrowserProcess methods |
63 virtual void EndSession() OVERRIDE; | 68 virtual void EndSession() OVERRIDE; |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 #if !defined(OS_CHROMEOS) | 288 #if !defined(OS_CHROMEOS) |
284 scoped_ptr<ComponentUpdateService> component_updater_; | 289 scoped_ptr<ComponentUpdateService> component_updater_; |
285 | 290 |
286 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; | 291 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; |
287 #endif | 292 #endif |
288 | 293 |
289 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 294 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
290 }; | 295 }; |
291 | 296 |
292 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 297 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |