| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 IOS_WEB_PUBLIC_APP_WEB_MAIN_PARTS_H_ | 5 #ifndef IOS_WEB_PUBLIC_APP_WEB_MAIN_PARTS_H_ |
| 6 #define IOS_WEB_PUBLIC_APP_WEB_MAIN_PARTS_H_ | 6 #define IOS_WEB_PUBLIC_APP_WEB_MAIN_PARTS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 | 8 |
| 10 namespace web { | 9 namespace web { |
| 11 | 10 |
| 12 // This class contains different "stages" to be executed by |WebMain()|. | 11 // This class contains different "stages" to be executed by |WebMain()|. |
| 13 // Each stage is represented by a single WebMainParts method, called from | 12 // Each stage is represented by a single WebMainParts method, called from |
| 14 // the corresponding method in |WebMainLoop| (e.g., EarlyInitialization()) | 13 // the corresponding method in |WebMainLoop| (e.g., EarlyInitialization()) |
| 15 // which does the following: | 14 // which does the following: |
| 16 // - calls a method (e.g., "PreEarlyInitialization()") which implements | 15 // - calls a method (e.g., "PreEarlyInitialization()") which implements |
| 17 // platform / tookit specific code for that stage. | 16 // platform / tookit specific code for that stage. |
| 18 // - calls various methods for things common to all platforms (for that stage). | 17 // - calls various methods for things common to all platforms (for that stage). |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual void PostMainMessageLoopRun() {} | 67 virtual void PostMainMessageLoopRun() {} |
| 69 | 68 |
| 70 // Called as the very last part of shutdown, after threads have been | 69 // Called as the very last part of shutdown, after threads have been |
| 71 // stopped and destroyed. | 70 // stopped and destroyed. |
| 72 virtual void PostDestroyThreads() {} | 71 virtual void PostDestroyThreads() {} |
| 73 }; | 72 }; |
| 74 | 73 |
| 75 } // namespace web | 74 } // namespace web |
| 76 | 75 |
| 77 #endif // IOS_WEB_PUBLIC_APP_WEB_MAIN_PARTS_H_ | 76 #endif // IOS_WEB_PUBLIC_APP_WEB_MAIN_PARTS_H_ |
| OLD | NEW |