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

Unified Diff: webkit/fileapi/file_system_url_request_job.h

Issue 9562032: Use the new CreateSnapshotFile() in FileSystemURLRequest job (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated Created 8 years, 10 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 | webkit/fileapi/file_system_url_request_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_url_request_job.h
diff --git a/webkit/fileapi/file_system_url_request_job.h b/webkit/fileapi/file_system_url_request_job.h
index e9adfd349e76615534a108829ce5802a590d9718..4f968e3a81bba2e851bb5494018f39a3ee470135 100644
--- a/webkit/fileapi/file_system_url_request_job.h
+++ b/webkit/fileapi/file_system_url_request_job.h
@@ -8,6 +8,7 @@
#include <string>
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/message_loop_proxy.h"
@@ -22,6 +23,10 @@ namespace net {
class FileStream;
}
+namespace webkit_blob {
+class ShareableFileReference;
+}
+
namespace fileapi {
class FileSystemContext;
@@ -55,9 +60,11 @@ class FileSystemURLRequestJob : public net::URLRequestJob {
virtual ~FileSystemURLRequestJob();
void StartAsync();
- void DidGetMetadata(base::PlatformFileError error_code,
- const base::PlatformFileInfo& file_info,
- const FilePath& platform_path);
+ void DidCreateSnapshot(
+ base::PlatformFileError error_code,
+ const base::PlatformFileInfo& file_info,
+ const FilePath& platform_path,
+ const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref);
void DidOpen(base::PlatformFileError error_code,
base::PassPlatformFile file, bool created);
void DidRead(int result);
@@ -67,6 +74,7 @@ class FileSystemURLRequestJob : public net::URLRequestJob {
scoped_refptr<base::MessageLoopProxy> file_thread_proxy_;
base::WeakPtrFactory<FileSystemURLRequestJob> weak_factory_;
scoped_ptr<net::FileStream> stream_;
+ scoped_refptr<webkit_blob::ShareableFileReference> snapshot_ref_;
bool is_directory_;
scoped_ptr<net::HttpResponseInfo> response_info_;
int64 remaining_bytes_;
« no previous file with comments | « no previous file | webkit/fileapi/file_system_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698