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

Unified Diff: net/base/file_stream_win.cc

Issue 10548028: NetLogEventParameter to Callback refactoring 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix bad paste Created 8 years, 6 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 | « no previous file | net/base/host_resolver_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/file_stream_win.cc
===================================================================
--- net/base/file_stream_win.cc (revision 142108)
+++ net/base/file_stream_win.cc (working copy)
@@ -77,7 +77,7 @@
FILE_ERROR_SOURCE_OPEN,
record_uma,
bound_net_log);
- bound_net_log.EndEvent(net::NetLog::TYPE_FILE_STREAM_OPEN, NULL);
+ bound_net_log.EndEvent(net::NetLog::TYPE_FILE_STREAM_OPEN);
return;
}
}
@@ -85,7 +85,7 @@
// Closes a file with some network logging.
void CloseFile(base::PlatformFile file,
const net::BoundNetLog& bound_net_log) {
- bound_net_log.AddEvent(net::NetLog::TYPE_FILE_STREAM_CLOSE, NULL);
+ bound_net_log.AddEvent(net::NetLog::TYPE_FILE_STREAM_CLOSE);
if (file == base::kInvalidPlatformFileValue)
return;
@@ -93,7 +93,7 @@
if (!base::ClosePlatformFile(file))
NOTREACHED();
- bound_net_log.EndEvent(net::NetLog::TYPE_FILE_STREAM_OPEN, NULL);
+ bound_net_log.EndEvent(net::NetLog::TYPE_FILE_STREAM_OPEN);
}
// Closes a file with CloseFile() and signals the completion.
@@ -211,7 +211,7 @@
bound_net_log_(net::BoundNetLog::Make(net_log,
net::NetLog::SOURCE_FILESTREAM)),
weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
- bound_net_log_.BeginEvent(net::NetLog::TYPE_FILE_STREAM_ALIVE, NULL);
+ bound_net_log_.BeginEvent(net::NetLog::TYPE_FILE_STREAM_ALIVE);
}
FileStreamWin::FileStreamWin(
@@ -223,7 +223,7 @@
bound_net_log_(net::BoundNetLog::Make(net_log,
net::NetLog::SOURCE_FILESTREAM)),
weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
- bound_net_log_.BeginEvent(net::NetLog::TYPE_FILE_STREAM_ALIVE, NULL);
+ bound_net_log_.BeginEvent(net::NetLog::TYPE_FILE_STREAM_ALIVE);
// If the file handle is opened with base::PLATFORM_FILE_ASYNC, we need to
// make sure we will perform asynchronous File IO to it.
@@ -259,7 +259,7 @@
}
}
- bound_net_log_.EndEvent(net::NetLog::TYPE_FILE_STREAM_ALIVE, NULL);
+ bound_net_log_.EndEvent(net::NetLog::TYPE_FILE_STREAM_ALIVE);
}
void FileStreamWin::Close(const CompletionCallback& callback) {
@@ -292,7 +292,7 @@
// once all async clients are migrated to use Close(). crbug.com/114783
WaitForIOCompletion();
- bound_net_log_.AddEvent(net::NetLog::TYPE_FILE_STREAM_CLOSE, NULL);
+ bound_net_log_.AddEvent(net::NetLog::TYPE_FILE_STREAM_CLOSE);
if (file_ != base::kInvalidPlatformFileValue)
CancelIo(file_);
@@ -304,7 +304,7 @@
NOTREACHED();
file_ = base::kInvalidPlatformFileValue;
- bound_net_log_.EndEvent(net::NetLog::TYPE_FILE_STREAM_OPEN, NULL);
+ bound_net_log_.EndEvent(net::NetLog::TYPE_FILE_STREAM_OPEN);
}
}
« no previous file with comments | « no previous file | net/base/host_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698