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