| 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 "content/common/content_export.h" |    8 #include "content/common/content_export.h" | 
|    9  |    9  | 
|   10 namespace content { |   10 namespace content { | 
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   81  |   81  | 
|   82   // Returns true if the message loop was run, false otherwise. |   82   // Returns true if the message loop was run, false otherwise. | 
|   83   // If this returns false, the default implementation will be run. |   83   // If this returns false, the default implementation will be run. | 
|   84   // May set |result_code|, which will be returned by |BrowserMain()|. |   84   // May set |result_code|, which will be returned by |BrowserMain()|. | 
|   85   virtual bool MainMessageLoopRun(int* result_code); |   85   virtual bool MainMessageLoopRun(int* result_code); | 
|   86  |   86  | 
|   87   // This happens after the main message loop has stopped, but before |   87   // This happens after the main message loop has stopped, but before | 
|   88   // threads are stopped. |   88   // threads are stopped. | 
|   89   virtual void PostMainMessageLoopRun() {} |   89   virtual void PostMainMessageLoopRun() {} | 
|   90  |   90  | 
 |   91   // Called when shutdown is about to begin. | 
 |   92   virtual void PreShutdown() {} | 
 |   93  | 
|   91   // Called as the very last part of shutdown, after threads have been |   94   // Called as the very last part of shutdown, after threads have been | 
|   92   // stopped and destroyed. |   95   // stopped and destroyed. | 
|   93   virtual void PostDestroyThreads() {} |   96   virtual void PostDestroyThreads() {} | 
|   94 }; |   97 }; | 
|   95  |   98  | 
|   96 }  // namespace content |   99 }  // namespace content | 
|   97  |  100  | 
|   98 #endif  // CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_ |  101 #endif  // CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_ | 
| OLD | NEW |