diff options
author | adamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-09 21:54:26 +0000 |
---|---|---|
committer | adamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-09 21:54:26 +0000 |
commit | 4f61e0e76ac6a0fb034cfd0973d06e5216ada7fc (patch) | |
tree | a147b9873e5624ddf99e9f71ec595abad9ce4812 /webkit/fileapi/file_system_url_request_job.h | |
parent | 8d5ddd0a8fa11345e3894e5d58f6fdf395d76fef (diff) | |
download | chromium_src-4f61e0e76ac6a0fb034cfd0973d06e5216ada7fc.zip chromium_src-4f61e0e76ac6a0fb034cfd0973d06e5216ada7fc.tar.gz chromium_src-4f61e0e76ac6a0fb034cfd0973d06e5216ada7fc.tar.bz2 |
Several bits of cleanup in FileSystem*URLRequestJob:
- Remove startup_error_ member and delayed error reporting;
URLRequestJob properly enqueues NotifyDone calls so that
they complete after Start() runs.
- Remove origin_url_ members, replace with locals.
- Re-organize .h file to call out FilterContext method.
Review URL: http://codereview.chromium.org/6458011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74339 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_url_request_job.h')
-rw-r--r-- | webkit/fileapi/file_system_url_request_job.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/webkit/fileapi/file_system_url_request_job.h b/webkit/fileapi/file_system_url_request_job.h index c49d873..bc25f75 100644 --- a/webkit/fileapi/file_system_url_request_job.h +++ b/webkit/fileapi/file_system_url_request_job.h @@ -14,11 +14,12 @@ #include "base/scoped_callback_factory.h" #include "base/scoped_ptr.h" #include "base/task.h" -#include "googleurl/src/gurl.h" #include "net/base/completion_callback.h" #include "net/http/http_byte_range.h" #include "net/url_request/url_request_job.h" +class GURL; + namespace net { class FileStream; } @@ -38,9 +39,13 @@ class FileSystemURLRequestJob : public net::URLRequestJob { virtual void Kill(); virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read); virtual bool IsRedirectResponse(GURL* location, int* http_status_code); - virtual bool GetMimeType(std::string* mime_type) const; virtual void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers); - // TODO(adamk): Implement the rest of the methods required to simulate HTTP. + + // FilterContext methods (via URLRequestJob): + virtual bool GetMimeType(std::string* mime_type) const; + + // TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate + // an HTTP response. private: virtual ~FileSystemURLRequestJob(); @@ -58,7 +63,6 @@ class FileSystemURLRequestJob : public net::URLRequestJob { FilePath relative_file_path_; FilePath absolute_file_path_; - GURL origin_url_; FileSystemPathManager* const path_manager_; net::CompletionCallbackImpl<FileSystemURLRequestJob> io_callback_; @@ -67,7 +71,6 @@ class FileSystemURLRequestJob : public net::URLRequestJob { net::HttpByteRange byte_range_; int64 remaining_bytes_; - int startup_error_; ScopedRunnableMethodFactory<FileSystemURLRequestJob> method_factory_; base::ScopedCallbackFactory<FileSystemURLRequestJob> callback_factory_; |