| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/files/file_tracing.h" | 10 #include "base/files/file_tracing.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 extern const char kFileTracingEventCategoryGroup[]; | 15 extern const char kFileTracingEventCategoryGroup[]; |
| 16 | 16 |
| 17 class FileTracingProviderImpl : public base::FileTracing::Provider { | 17 class FileTracingProviderImpl : public base::FileTracing::Provider { |
| 18 public: | 18 public: |
| 19 FileTracingProviderImpl(); | 19 FileTracingProviderImpl(); |
| 20 ~FileTracingProviderImpl() override; | 20 ~FileTracingProviderImpl() override; |
| 21 | 21 |
| 22 // base::FileTracing::Provider: | 22 // base::FileTracing::Provider: |
| 23 bool FileTracingCategoryIsEnabled() const override; | 23 bool FileTracingCategoryIsEnabled() const override; |
| 24 void FileTracingEnable(void* id) override; | 24 void FileTracingEnable(const void* id) override; |
| 25 void FileTracingDisable(void* id) override; | 25 void FileTracingDisable(const void* id) override; |
| 26 void FileTracingEventBegin(const char* name, void* id, | 26 void FileTracingEventBegin(const char* name, |
| 27 const base::FilePath& path, int64_t size) override; | 27 const void* id, |
| 28 void FileTracingEventEnd(const char* name, void* id) override; | 28 const base::FilePath& path, |
| 29 int64_t size) override; |
| 30 void FileTracingEventEnd(const char* name, const void* id) override; |
| 29 | 31 |
| 30 private: | 32 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(FileTracingProviderImpl); | 33 DISALLOW_COPY_AND_ASSIGN(FileTracingProviderImpl); |
| 32 }; | 34 }; |
| 33 | 35 |
| 34 } // namespace content | 36 } // namespace content |
| 35 | 37 |
| 36 #endif // CONTENT_BROWSER_TRACING_FILE_TRACING_PROVIDER_IMPL_H_ | 38 #endif // CONTENT_BROWSER_TRACING_FILE_TRACING_PROVIDER_IMPL_H_ |
| OLD | NEW |