diff options
author | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-09 05:59:40 +0000 |
---|---|---|
committer | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-09 05:59:40 +0000 |
commit | fe57eb240ec0b058a4e2ccc5fbfececa8952b4e6 (patch) | |
tree | 5fcc133999cc5689b999cfa3e52aae4af21aa74e /webkit/tools | |
parent | cb7eb8f732a5df2bafc0a4f9512b16bb1f66fc8e (diff) | |
download | chromium_src-fe57eb240ec0b058a4e2ccc5fbfececa8952b4e6.zip chromium_src-fe57eb240ec0b058a4e2ccc5fbfececa8952b4e6.tar.gz chromium_src-fe57eb240ec0b058a4e2ccc5fbfececa8952b4e6.tar.bz2 |
net: Rename FileStream::Open/Close with OpenSync/CloseSync.
This is in preparation for implementing async versions of Open()
and Close().
The existing clients are changed to use OpenSync/CloseSync.
No logic is changed.
The original patch was reverted as it broke linux_chromeos build.
This patch includes fixes for the build.
TEST=git try -r 121075 --bot=win,linux,mac,linux_chromeos,linux_chromeos_gtk,win_aura to confirm everything is built as before.
BUG=72001
Review URL: https://chromiumcodereview.appspot.com/9373001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121202 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r-- | webkit/tools/test_shell/simple_resource_loader_bridge.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/simple_resource_loader_bridge.cc b/webkit/tools/test_shell/simple_resource_loader_bridge.cc index 1dd138e..8f76c2b 100644 --- a/webkit/tools/test_shell/simple_resource_loader_bridge.cc +++ b/webkit/tools/test_shell/simple_resource_loader_bridge.cc @@ -332,7 +332,7 @@ class RequestProxy : public net::URLRequest::Delegate, if (file_util::CreateTemporaryFile(&path)) { downloaded_file_ = DeletableFileReference::GetOrCreate( path, base::MessageLoopProxy::current()); - file_stream_.Open( + file_stream_.OpenSync( path, base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_WRITE); } } @@ -426,7 +426,7 @@ class RequestProxy : public net::URLRequest::Delegate, const std::string& security_info, const base::TimeTicks& complete_time) { if (download_to_file_) - file_stream_.Close(); + file_stream_.CloseSync(); owner_loop_->PostTask( FROM_HERE, base::Bind(&RequestProxy::NotifyCompletedRequest, this, status, @@ -732,7 +732,7 @@ class SyncRequestProxy : public RequestProxy { const std::string& security_info, const base::TimeTicks& complete_time) { if (download_to_file_) - file_stream_.Close(); + file_stream_.CloseSync(); result_->status = status; event_.Signal(); } |