Index: components/tracing/common/startup_command_parser.h |
diff --git a/components/tracing/common/startup_command_parser.h b/components/tracing/common/startup_command_parser.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8a7b0999d5d4f29fb96de1ddac53445154cd78b0 |
--- /dev/null |
+++ b/components/tracing/common/startup_command_parser.h |
@@ -0,0 +1,22 @@ |
+// Copyright 2017 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 COMPONENTS_TRACING_COMMON_STARTUP_COMMAND_PARSER_H |
+#define COMPONENTS_TRACING_COMMON_STARTUP_COMMAND_PARSER_H |
+ |
+#include "base/command_line.h" |
+#include "components/tracing/tracing_export.h" |
+ |
+namespace tracing { |
+ |
+// Enables TraceLog with config based on the command line flags passed. If |
+// |can_access_file_system| is false then TraceLog is not enabled in case it is |
+// required to read config file to start tracing. |
+void TRACING_EXPORT |
+ParseStartupTraceCommands(const base::CommandLine& command_line, |
+ bool can_access_file_system); |
+ |
+} // namespace tracing |
+ |
+#endif // COMPONENTS_TRACING_COMMON_STARTUP_COMMAND_PARSER_H |