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

Unified Diff: webkit/glue/webfileutilities_impl.cc

Issue 9288084: Added Net logging to FileStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed copyright issue. Created 8 years, 11 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 | « webkit/fileapi/file_writer_delegate.cc ('k') | webkit/tools/test_shell/simple_resource_loader_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webfileutilities_impl.cc
diff --git a/webkit/glue/webfileutilities_impl.cc b/webkit/glue/webfileutilities_impl.cc
index 7548d70c302f9b97f2491e40891dcbc57c4ab802..668062feeaad4c75622a0723ce03078da71d4237 100644
--- a/webkit/glue/webfileutilities_impl.cc
+++ b/webkit/glue/webfileutilities_impl.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -127,7 +127,7 @@ long long WebFileUtilitiesImpl::seekFile(base::PlatformFile handle,
int origin) {
if (handle == base::kInvalidPlatformFileValue)
return -1;
- net::FileStream file_stream(handle, 0);
+ net::FileStream file_stream(handle, 0, NULL);
return file_stream.Seek(static_cast<net::Whence>(origin), offset);
}
@@ -135,7 +135,7 @@ bool WebFileUtilitiesImpl::truncateFile(base::PlatformFile handle,
long long offset) {
if (handle == base::kInvalidPlatformFileValue || offset < 0)
return false;
- net::FileStream file_stream(handle, base::PLATFORM_FILE_WRITE);
+ net::FileStream file_stream(handle, base::PLATFORM_FILE_WRITE, NULL);
return file_stream.Truncate(offset) >= 0;
}
@@ -146,7 +146,7 @@ int WebFileUtilitiesImpl::readFromFile(base::PlatformFile handle,
return -1;
std::string buffer;
buffer.resize(length);
- net::FileStream file_stream(handle, base::PLATFORM_FILE_READ);
+ net::FileStream file_stream(handle, base::PLATFORM_FILE_READ, NULL);
return file_stream.Read(data, length, net::CompletionCallback());
}
@@ -155,7 +155,7 @@ int WebFileUtilitiesImpl::writeToFile(base::PlatformFile handle,
int length) {
if (handle == base::kInvalidPlatformFileValue || !data || length <= 0)
return -1;
- net::FileStream file_stream(handle, base::PLATFORM_FILE_WRITE);
+ net::FileStream file_stream(handle, base::PLATFORM_FILE_WRITE, NULL);
return file_stream.Write(data, length, net::CompletionCallback());
}
« no previous file with comments | « webkit/fileapi/file_writer_delegate.cc ('k') | webkit/tools/test_shell/simple_resource_loader_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698