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