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_ |