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

Unified Diff: content/browser/tracing/file_tracing_provider_impl.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/tracing/file_tracing_provider_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tracing/file_tracing_provider_impl.cc
diff --git a/content/browser/tracing/file_tracing_provider_impl.cc b/content/browser/tracing/file_tracing_provider_impl.cc
index 7f63024942c8b704f574372762632de406d38cfb..b9dfa4e39bb404e95bec2924640d22225dd5790a 100644
--- a/content/browser/tracing/file_tracing_provider_impl.cc
+++ b/content/browser/tracing/file_tracing_provider_impl.cc
@@ -20,23 +20,26 @@ bool FileTracingProviderImpl::FileTracingCategoryIsEnabled() const {
return enabled;
}
-void FileTracingProviderImpl::FileTracingEnable(void* id) {
+void FileTracingProviderImpl::FileTracingEnable(const void* id) {
TRACE_EVENT_NESTABLE_ASYNC_BEGIN0(
kFileTracingEventCategoryGroup, FILE_TRACING_PREFIX, id);
}
-void FileTracingProviderImpl::FileTracingDisable(void* id) {
+void FileTracingProviderImpl::FileTracingDisable(const void* id) {
TRACE_EVENT_NESTABLE_ASYNC_END0(
kFileTracingEventCategoryGroup, FILE_TRACING_PREFIX, id);
}
-void FileTracingProviderImpl::FileTracingEventBegin(
- const char* name, void* id, const base::FilePath& path, int64_t size) {
+void FileTracingProviderImpl::FileTracingEventBegin(const char* name,
+ const void* id,
+ const base::FilePath& path,
+ int64_t size) {
TRACE_EVENT_NESTABLE_ASYNC_BEGIN2(kFileTracingEventCategoryGroup, name, id,
"path", path.AsUTF8Unsafe(), "size", size);
}
-void FileTracingProviderImpl::FileTracingEventEnd(const char* name, void* id) {
+void FileTracingProviderImpl::FileTracingEventEnd(const char* name,
+ const void* id) {
TRACE_EVENT_NESTABLE_ASYNC_END0(kFileTracingEventCategoryGroup, name, id);
}
« no previous file with comments | « content/browser/tracing/file_tracing_provider_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698