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

Side by Side Diff: tools/gn/trace.h

Issue 1280123005: tools/gn: Remove includes of basictypes.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 TOOLS_GN_TRACE_H_ 5 #ifndef TOOLS_GN_TRACE_H_
6 #define TOOLS_GN_TRACE_H_ 6 #define TOOLS_GN_TRACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h"
11 #include "base/command_line.h" 10 #include "base/command_line.h"
12 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
13 #include "base/memory/scoped_ptr.h" 12 #include "base/macros.h"
14 #include "base/threading/platform_thread.h" 13 #include "base/threading/platform_thread.h"
15 #include "base/time/time.h" 14 #include "base/time/time.h"
16 15
17 class Label; 16 class Label;
18 17
19 class TraceItem { 18 class TraceItem {
20 public: 19 public:
21 enum Type { 20 enum Type {
22 TRACE_SETUP, 21 TRACE_SETUP,
23 TRACE_FILE_LOAD, 22 TRACE_FILE_LOAD,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void AddTrace(TraceItem* item); 88 void AddTrace(TraceItem* item);
90 89
91 // Returns a summary of the current traces, or the empty string if tracing is 90 // Returns a summary of the current traces, or the empty string if tracing is
92 // not enabled. 91 // not enabled.
93 std::string SummarizeTraces(); 92 std::string SummarizeTraces();
94 93
95 // Saves the current traces to the given filename in JSON format. 94 // Saves the current traces to the given filename in JSON format.
96 void SaveTraces(const base::FilePath& file_name); 95 void SaveTraces(const base::FilePath& file_name);
97 96
98 #endif // TOOLS_GN_TRACE_H_ 97 #endif // TOOLS_GN_TRACE_H_
OLDNEW
« tools/gn/args.h ('K') | « tools/gn/tool.h ('k') | tools/gn/value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698