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

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: explicit BrowserShutdownProfileDumper. 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
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..33d7984bcaa745d3d2e6485f0d82b778db2ea5df
--- /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.
+base::FilePath AddNewLogFileIndex(const base::FilePath& trace_file);
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_TRACING_ADD_NEW_FILE_INDEX_H_

Powered by Google App Engine
This is Rietveld 408576698