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

Side by Side Diff: content/browser/loader/temporary_file_stream.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/loader/temporary_file_stream.h" 5 #include "content/browser/loader/temporary_file_stream.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/files/file_proxy.h" 9 #include "base/files/file_proxy.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
12 #include "net/base/file_stream.h" 12 #include "net/base/file_stream.h"
13 #include "webkit/common/blob/shareable_file_reference.h" 13 #include "storage/common/blob/shareable_file_reference.h"
14 14
15 using webkit_blob::ShareableFileReference; 15 using storage::ShareableFileReference;
16 16
17 namespace content { 17 namespace content {
18 18
19 namespace { 19 namespace {
20 20
21 void DidCreateTemporaryFile( 21 void DidCreateTemporaryFile(
22 const CreateTemporaryFileStreamCallback& callback, 22 const CreateTemporaryFileStreamCallback& callback,
23 scoped_ptr<base::FileProxy> file_proxy, 23 scoped_ptr<base::FileProxy> file_proxy,
24 base::File::Error error_code, 24 base::File::Error error_code,
25 const base::FilePath& file_path) { 25 const base::FilePath& file_path) {
(...skipping 28 matching lines...) Expand all
54 54
55 scoped_ptr<base::FileProxy> file_proxy(new base::FileProxy( 55 scoped_ptr<base::FileProxy> file_proxy(new base::FileProxy(
56 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE).get())); 56 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE).get()));
57 base::FileProxy* proxy = file_proxy.get(); 57 base::FileProxy* proxy = file_proxy.get();
58 proxy->CreateTemporary( 58 proxy->CreateTemporary(
59 base::File::FLAG_ASYNC, 59 base::File::FLAG_ASYNC,
60 base::Bind(&DidCreateTemporaryFile, callback, Passed(&file_proxy))); 60 base::Bind(&DidCreateTemporaryFile, callback, Passed(&file_proxy)));
61 } 61 }
62 62
63 } // namespace content 63 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/temporary_file_stream.h ('k') | content/browser/loader/temporary_file_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698