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

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

Issue 10855209: Refactoring: ProtocolHandler::MaybeCreateJob takes NetworkDelegate as argument (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest merge Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DIR_URL_REQUEST_JOB_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/file_util_proxy.h" 12 #include "base/file_util_proxy.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/message_loop_proxy.h" 14 #include "base/message_loop_proxy.h"
15 #include "base/platform_file.h" 15 #include "base/platform_file.h"
16 #include "net/url_request/url_request_job.h" 16 #include "net/url_request/url_request_job.h"
17 #include "webkit/fileapi/file_system_url.h" 17 #include "webkit/fileapi/file_system_url.h"
18 #include "webkit/fileapi/fileapi_export.h" 18 #include "webkit/fileapi/fileapi_export.h"
19 19
20 namespace fileapi { 20 namespace fileapi {
21 class FileSystemContext; 21 class FileSystemContext;
22 class FileSystemOperationInterface; 22 class FileSystemOperationInterface;
23 23
24 // A request job that handles reading filesystem: URLs for directories. 24 // A request job that handles reading filesystem: URLs for directories.
25 class FILEAPI_EXPORT_PRIVATE FileSystemDirURLRequestJob 25 class FILEAPI_EXPORT_PRIVATE FileSystemDirURLRequestJob
26 : public net::URLRequestJob { 26 : public net::URLRequestJob {
27 public: 27 public:
28 FileSystemDirURLRequestJob( 28 FileSystemDirURLRequestJob(
29 net::URLRequest* request, 29 net::URLRequest* request,
30 net::NetworkDelegate* network_delegate,
30 FileSystemContext* file_system_context); 31 FileSystemContext* file_system_context);
31 32
32 // URLRequestJob methods: 33 // URLRequestJob methods:
33 virtual void Start() OVERRIDE; 34 virtual void Start() OVERRIDE;
34 virtual void Kill() OVERRIDE; 35 virtual void Kill() OVERRIDE;
35 virtual bool ReadRawData(net::IOBuffer* buf, 36 virtual bool ReadRawData(net::IOBuffer* buf,
36 int buf_size, 37 int buf_size,
37 int* bytes_read) OVERRIDE; 38 int* bytes_read) OVERRIDE;
38 virtual bool GetCharset(std::string* charset) OVERRIDE; 39 virtual bool GetCharset(std::string* charset) OVERRIDE;
39 40
(...skipping 17 matching lines...) Expand all
57 FileSystemURL url_; 58 FileSystemURL url_;
58 FileSystemContext* file_system_context_; 59 FileSystemContext* file_system_context_;
59 base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_; 60 base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob); 62 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob);
62 }; 63 };
63 64
64 } // namespace fileapi 65 } // namespace fileapi
65 66
66 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ 67 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « webkit/blob/view_blob_internals_job.cc ('k') | webkit/fileapi/file_system_dir_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698