Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: content/public/browser/browser_main_parts.h

Issue 2530043002: Set process phases in the StackSamplingProfiler. (Closed)
Patch Set: move MainLoopStart milestone and histogram to top of utility method Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 as the very last part of shutdown, after threads have been 91 // Called as the very last part of shutdown, after threads have been
92 // stopped and destroyed. 92 // stopped and destroyed.
93 virtual void PostDestroyThreads() {} 93 virtual void PostDestroyThreads() {}
94
95 // Called when shutdown is about to begin.
96 virtual void PreShutdown() {}
jochen (gone - plz use gerrit) 2017/01/12 08:35:02 nit. can you move that up to before PostDestroyThr
bcwhite 2017/01/12 17:47:03 Done.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698