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

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

Issue 2530043002: Set process phases in the StackSamplingProfiler. (Closed)
Patch Set: improved comment 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
« no previous file with comments | « content/browser/browser_main_runner.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « content/browser/browser_main_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698