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

Unified Diff: content/browser/browser_shutdown_profile_dumper.h

Issue 24047007: Fix --trace-shutdown with thread-local tracing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/threading/thread_restrictions.h ('k') | content/browser/browser_shutdown_profile_dumper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_shutdown_profile_dumper.h
diff --git a/content/browser/browser_shutdown_profile_dumper.h b/content/browser/browser_shutdown_profile_dumper.h
index efccb3802ed99789093ffb2ca99b560925ac5274..f98a32cb9ca98d0dc42f5a0973bb541349b3bb8e 100644
--- a/content/browser/browser_shutdown_profile_dumper.h
+++ b/content/browser/browser_shutdown_profile_dumper.h
@@ -14,6 +14,7 @@
namespace base {
class FilePath;
+class WaitableEvent;
}
namespace content {
@@ -36,12 +37,15 @@ class BrowserShutdownProfileDumper {
// Writes all traces which happened to disk.
void WriteTracesToDisc(const base::FilePath& file_name);
+ void EndTraceAndFlush(base::WaitableEvent* flush_complete_event);
+
// Returns the file name where we should save the trace dump to.
base::FilePath GetFileName();
// The callback for the |TraceLog::Flush| function. It saves all traces to
// disc.
void WriteTraceDataCollected(
+ base::WaitableEvent* flush_complete_event,
const scoped_refptr<base::RefCountedString>& events_str,
bool has_more_events);
« no previous file with comments | « base/threading/thread_restrictions.h ('k') | content/browser/browser_shutdown_profile_dumper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698