[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / content / browser / tracing / file_tracing_provider_impl.h
blob1dc01a4fd7e98d17cb78788b9120b9dd362e3454
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.
5 #ifndef CONTENT_BROWSER_TRACING_FILE_TRACING_PROVIDER_IMPL_H_
6 #define CONTENT_BROWSER_TRACING_FILE_TRACING_PROVIDER_IMPL_H_
8 #include "base/files/file_tracing.h"
9 #include "base/macros.h"
11 namespace content {
13 extern const char kFileTracingEventCategoryGroup[];
15 class FileTracingProviderImpl : public base::FileTracing::Provider {
16 public:
17 FileTracingProviderImpl();
18 ~FileTracingProviderImpl() override;
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) override;
28 private:
29 DISALLOW_COPY_AND_ASSIGN(FileTracingProviderImpl);
32 } // namespace content
34 #endif // CONTENT_BROWSER_TRACING_FILE_TRACING_PROVIDER_IMPL_H_