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

Side by Side Diff: content/browser/tracing/file_tracing_provider_impl.h

Issue 1149083012: Simplify file tracing end events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: thestig@ review Created 5 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 unified diff | Download patch
« no previous file with comments | « base/trace_event/trace_event.h ('k') | content/browser/tracing/file_tracing_provider_impl.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 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 CONTENT_BROWSER_TRACING_FILE_TRACING_PROVIDER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_TRACING_FILE_TRACING_PROVIDER_IMPL_H_
6 #define CONTENT_BROWSER_TRACING_FILE_TRACING_PROVIDER_IMPL_H_ 6 #define CONTENT_BROWSER_TRACING_FILE_TRACING_PROVIDER_IMPL_H_
7 7
8 #include "base/files/file_tracing.h" 8 #include "base/files/file_tracing.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 extern const char kFileTracingEventCategoryGroup[]; 13 extern const char kFileTracingEventCategoryGroup[];
14 14
15 class FileTracingProviderImpl : public base::FileTracing::Provider { 15 class FileTracingProviderImpl : public base::FileTracing::Provider {
16 public: 16 public:
17 FileTracingProviderImpl(); 17 FileTracingProviderImpl();
18 ~FileTracingProviderImpl(); 18 ~FileTracingProviderImpl();
19 19
20 // base::FileTracing::Provider: 20 // base::FileTracing::Provider:
21 bool FileTracingCategoryIsEnabled() const override; 21 bool FileTracingCategoryIsEnabled() const override;
22 void FileTracingEnable(void* id) override; 22 void FileTracingEnable(void* id) override;
23 void FileTracingDisable(void* id) override; 23 void FileTracingDisable(void* id) override;
24 void FileTracingEventBegin(const char* name, void* id, 24 void FileTracingEventBegin(const char* name, void* id,
25 const base::FilePath& path, int64 size) override; 25 const base::FilePath& path, int64 size) override;
26 void FileTracingEventEnd(const char* name, void* id, 26 void FileTracingEventEnd(const char* name, void* id) override;
27 const base::FilePath& path, int64 size) override;
28 27
29 private: 28 private:
30 DISALLOW_COPY_AND_ASSIGN(FileTracingProviderImpl); 29 DISALLOW_COPY_AND_ASSIGN(FileTracingProviderImpl);
31 }; 30 };
32 31
33 } // namespace content 32 } // namespace content
34 33
35 #endif // CONTENT_BROWSER_TRACING_FILE_TRACING_PROVIDER_IMPL_H_ 34 #endif // CONTENT_BROWSER_TRACING_FILE_TRACING_PROVIDER_IMPL_H_
OLDNEW
« no previous file with comments | « base/trace_event/trace_event.h ('k') | content/browser/tracing/file_tracing_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698