diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-01 23:04:07 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-01 23:04:07 +0000 |
commit | a37b56a06d42ed1e726ea86f529b295b2e6ea22a (patch) | |
tree | 9f9d8448c47f1dbf6f3c94399103f75e6f43e126 /base/platform_file_win.cc | |
parent | 2513e5dd5b5b2c0bfa512edf47ef0d6e07dd30cb (diff) | |
download | chromium_src-a37b56a06d42ed1e726ea86f529b295b2e6ea22a.zip chromium_src-a37b56a06d42ed1e726ea86f529b295b2e6ea22a.tar.gz chromium_src-a37b56a06d42ed1e726ea86f529b295b2e6ea22a.tar.bz2 |
Base: Change ReadPlatformFile to perform a best
effort read of the requested data, and add another
function (ReadPlatformFileNoBestEffort) that just
forwards the call to the OS.
Now ReadPlatformFile and WritePlatformFile behave
the same way.
BUG=none
TEST=base_unittests
Review URL: http://codereview.chromium.org/7821013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99264 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_file_win.cc')
-rw-r--r-- | base/platform_file_win.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/platform_file_win.cc b/base/platform_file_win.cc index 8374042..072c24a 100644 --- a/base/platform_file_win.cc +++ b/base/platform_file_win.cc @@ -134,6 +134,11 @@ int ReadPlatformFile(PlatformFile file, int64 offset, char* data, int size) { return -1; } +int ReadPlatformFileNoBestEffort(PlatformFile file, int64 offset, + char* data, int size) { + return ReadPlatformFile(file, offset, data, size); +} + int WritePlatformFile(PlatformFile file, int64 offset, const char* data, int size) { base::ThreadRestrictions::AssertIOAllowed(); |