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

Unified Diff: content/browser/tracing/add_new_file_index.h

Issue 311313005: Add --trace-rotate-startup-file option and store unsaved trace data on exit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows build. Created 6 years, 6 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 | « content/browser/browser_shutdown_profile_dumper.cc ('k') | content/browser/tracing/add_new_file_index.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tracing/add_new_file_index.h
diff --git a/content/browser/tracing/add_new_file_index.h b/content/browser/tracing/add_new_file_index.h
new file mode 100644
index 0000000000000000000000000000000000000000..fb5346564d2cb16c852921d7cba1b057c1becd92
--- /dev/null
+++ b/content/browser/tracing/add_new_file_index.h
@@ -0,0 +1,22 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_TRACING_ADD_NEW_FILE_INDEX_H_
+#define CONTENT_BROWSER_TRACING_ADD_NEW_FILE_INDEX_H_
+
+namespace base {
+class FilePath;
+}
+
+namespace content {
+
+// Add first unused number file suffix ".0", ".1", ... up to kMaxLogFileIndex.
+// Returns |trace_file| if all indexes are used.
+// Note, that it should be synchronous to delay UI thread before log
+// file name is selected. Therefore it is called before threads are set up.
+base::FilePath AddNewLogFileIndex(const base::FilePath& trace_file);
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_TRACING_ADD_NEW_FILE_INDEX_H_
« no previous file with comments | « content/browser/browser_shutdown_profile_dumper.cc ('k') | content/browser/tracing/add_new_file_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698