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

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

Issue 2163063002: Make File::Duplicate() const (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert unneeded 'private:' label Created 4 years, 5 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/files/file_win.cc ('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 <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_
OLDNEW
« no previous file with comments | « base/files/file_win.cc ('k') | content/browser/tracing/file_tracing_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698