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 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_ |
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/browser/browser_thread.h" | |
11 | 10 |
12 namespace content { | 11 namespace content { |
13 | 12 |
14 // This class contains different "stages" to be executed by |BrowserMain()|, | 13 // This class contains different "stages" to be executed by |BrowserMain()|, |
15 // Each stage is represented by a single BrowserMainParts method, called from | 14 // Each stage is represented by a single BrowserMainParts method, called from |
16 // the corresponding method in |BrowserMainLoop| (e.g., EarlyInitialization()) | 15 // the corresponding method in |BrowserMainLoop| (e.g., EarlyInitialization()) |
17 // which does the following: | 16 // which does the following: |
18 // - calls a method (e.g., "PreEarlyInitialization()") which implements | 17 // - calls a method (e.g., "PreEarlyInitialization()") which implements |
19 // platform / tookit specific code for that stage. | 18 // platform / tookit specific code for that stage. |
20 // - calls various methods for things common to all platforms (for that stage). | 19 // - calls various methods for things common to all platforms (for that stage). |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 virtual void PostMainMessageLoopRun() {} | 85 virtual void PostMainMessageLoopRun() {} |
87 | 86 |
88 // Called as the very last part of shutdown, after threads have been | 87 // Called as the very last part of shutdown, after threads have been |
89 // stopped and destroyed. | 88 // stopped and destroyed. |
90 virtual void PostDestroyThreads() {} | 89 virtual void PostDestroyThreads() {} |
91 }; | 90 }; |
92 | 91 |
93 } // namespace content | 92 } // namespace content |
94 | 93 |
95 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_ | 94 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |