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

Side by Side Diff: webkit/fileapi/file_system_url_request_job.h

Issue 6471019: Stackable file_util for FileAPIs. Sample code for discussion. Incomplete. Cannot be compiled. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed the Patch Set 3 before reflecting the comments. -UtilBase can be built and works. Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2011 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 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/message_loop_proxy.h" 12 #include "base/message_loop_proxy.h"
13 #include "base/platform_file.h" 13 #include "base/platform_file.h"
14 #include "base/scoped_callback_factory.h" 14 #include "base/scoped_callback_factory.h"
15 #include "base/scoped_ptr.h" 15 #include "base/scoped_ptr.h"
16 #include "base/task.h" 16 #include "base/task.h"
17 #include "net/base/completion_callback.h" 17 #include "net/base/completion_callback.h"
18 #include "net/http/http_byte_range.h" 18 #include "net/http/http_byte_range.h"
19 #include "net/url_request/url_request_job.h" 19 #include "net/url_request/url_request_job.h"
20 #include "webkit/fileapi/file_system_operation_context.h"
20 21
21 class GURL; 22 class GURL;
22 23
23 namespace net { 24 namespace net {
24 class FileStream; 25 class FileStream;
25 } 26 }
26 27
27 namespace fileapi { 28 namespace fileapi {
28 class FileSystemPathManager; 29 class FileSystemPathManager;
29 30
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 net::CompletionCallbackImpl<FileSystemURLRequestJob> io_callback_; 69 net::CompletionCallbackImpl<FileSystemURLRequestJob> io_callback_;
69 scoped_ptr<net::FileStream> stream_; 70 scoped_ptr<net::FileStream> stream_;
70 bool is_directory_; 71 bool is_directory_;
71 72
72 net::HttpByteRange byte_range_; 73 net::HttpByteRange byte_range_;
73 int64 remaining_bytes_; 74 int64 remaining_bytes_;
74 75
75 ScopedRunnableMethodFactory<FileSystemURLRequestJob> method_factory_; 76 ScopedRunnableMethodFactory<FileSystemURLRequestJob> method_factory_;
76 base::ScopedCallbackFactory<FileSystemURLRequestJob> callback_factory_; 77 base::ScopedCallbackFactory<FileSystemURLRequestJob> callback_factory_;
77 scoped_refptr<base::MessageLoopProxy> file_thread_proxy_; 78 scoped_refptr<base::MessageLoopProxy> file_thread_proxy_;
79 scoped_ptr<FileSystemOperationContext> file_system_operation_context_;
78 80
79 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); 81 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob);
80 }; 82 };
81 83
82 } // namespace fileapi 84 } // namespace fileapi
83 85
84 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ 86 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_operation_context.cc ('k') | webkit/fileapi/file_system_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698