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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // May set |result_code|, which will be returned by |BrowserMain()|. | 88 // May set |result_code|, which will be returned by |BrowserMain()|. |
89 virtual bool MainMessageLoopRun(int* result_code) = 0; | 89 virtual bool MainMessageLoopRun(int* result_code) = 0; |
90 | 90 |
91 // This happens after the main message loop has stopped, but before | 91 // This happens after the main message loop has stopped, but before |
92 // threads are stopped. | 92 // threads are stopped. |
93 virtual void PostMainMessageLoopRun() = 0; | 93 virtual void PostMainMessageLoopRun() = 0; |
94 | 94 |
95 // Called as the very last part of shutdown, after threads have been | 95 // Called as the very last part of shutdown, after threads have been |
96 // stopped and destroyed. | 96 // stopped and destroyed. |
97 virtual void PostDestroyThreads() = 0; | 97 virtual void PostDestroyThreads() = 0; |
98 | |
99 private: | |
100 DISALLOW_COPY_AND_ASSIGN(BrowserMainParts); | |
101 }; | 98 }; |
102 | 99 |
103 } // namespace content | 100 } // namespace content |
104 | 101 |
105 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_ | 102 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |