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

Side by Side Diff: components/tracing/trace_config_file.h

Issue 1649483002: Revert of Aura on Android: content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@auraclank_upstream_select_file
Patch Set: Merging android_non_aura_browser_sources into android_browser_sources rather than private_browser_s… Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/tracing/trace_config_file.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_TRACING_TRACE_CONFIG_FILE_H_ 5 #ifndef COMPONENTS_TRACING_TRACE_CONFIG_FILE_H_
6 #define COMPONENTS_TRACING_TRACE_CONFIG_FILE_H_ 6 #define COMPONENTS_TRACING_TRACE_CONFIG_FILE_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/trace_event/trace_config.h" 10 #include "base/trace_event/trace_config.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // /data/local/chrome-trace-config.json 64 // /data/local/chrome-trace-config.json
65 // If this file exists, Chrome will start tracing according to the configuration 65 // If this file exists, Chrome will start tracing according to the configuration
66 // specified in the file, otherwise, Chrome will not start tracing. 66 // specified in the file, otherwise, Chrome will not start tracing.
67 class TRACING_EXPORT TraceConfigFile { 67 class TRACING_EXPORT TraceConfigFile {
68 public: 68 public:
69 static TraceConfigFile* GetInstance(); 69 static TraceConfigFile* GetInstance();
70 70
71 bool IsEnabled() const; 71 bool IsEnabled() const;
72 base::trace_event::TraceConfig GetTraceConfig() const; 72 base::trace_event::TraceConfig GetTraceConfig() const;
73 int GetStartupDuration() const; 73 int GetStartupDuration() const;
74 #if !defined(OS_ANDROID) || defined(USE_AURA) 74 #if !defined(OS_ANDROID)
75 base::FilePath GetResultFile() const; 75 base::FilePath GetResultFile() const;
76 #endif 76 #endif
77 77
78 private: 78 private:
79 // This allows constructor and destructor to be private and usable only 79 // This allows constructor and destructor to be private and usable only
80 // by the Singleton class. 80 // by the Singleton class.
81 friend struct base::DefaultSingletonTraits<TraceConfigFile>; 81 friend struct base::DefaultSingletonTraits<TraceConfigFile>;
82 TraceConfigFile(); 82 TraceConfigFile();
83 ~TraceConfigFile(); 83 ~TraceConfigFile();
84 84
85 bool ParseTraceConfigFileContent(const std::string& content); 85 bool ParseTraceConfigFileContent(const std::string& content);
86 86
87 bool is_enabled_; 87 bool is_enabled_;
88 base::trace_event::TraceConfig trace_config_; 88 base::trace_event::TraceConfig trace_config_;
89 int startup_duration_; 89 int startup_duration_;
90 base::FilePath result_file_; 90 base::FilePath result_file_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(TraceConfigFile); 92 DISALLOW_COPY_AND_ASSIGN(TraceConfigFile);
93 }; 93 };
94 94
95 } // namespace tracing 95 } // namespace tracing
96 96
97 #endif // COMPONENTS_TRACING_TRACE_CONFIG_FILE_H_ 97 #endif // COMPONENTS_TRACING_TRACE_CONFIG_FILE_H_
OLDNEW
« no previous file with comments | « no previous file | components/tracing/trace_config_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698