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

Side by Side Diff: webkit/fileapi/file_system_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_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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 14 matching lines...) Expand all
25 25
26 namespace fileapi { 26 namespace fileapi {
27 class FileSystemContext; 27 class FileSystemContext;
28 28
29 // A request job that handles reading filesystem: URLs 29 // A request job that handles reading filesystem: URLs
30 class FILEAPI_EXPORT_PRIVATE FileSystemURLRequestJob 30 class FILEAPI_EXPORT_PRIVATE FileSystemURLRequestJob
31 : public net::URLRequestJob { 31 : public net::URLRequestJob {
32 public: 32 public:
33 FileSystemURLRequestJob( 33 FileSystemURLRequestJob(
34 net::URLRequest* request, 34 net::URLRequest* request,
35 net::NetworkDelegate* network_delegate,
35 FileSystemContext* file_system_context); 36 FileSystemContext* file_system_context);
36 37
37 // URLRequestJob methods: 38 // URLRequestJob methods:
38 virtual void Start() OVERRIDE; 39 virtual void Start() OVERRIDE;
39 virtual void Kill() OVERRIDE; 40 virtual void Kill() OVERRIDE;
40 virtual bool ReadRawData(net::IOBuffer* buf, 41 virtual bool ReadRawData(net::IOBuffer* buf,
41 int buf_size, 42 int buf_size,
42 int* bytes_read) OVERRIDE; 43 int* bytes_read) OVERRIDE;
43 virtual bool IsRedirectResponse(GURL* location, 44 virtual bool IsRedirectResponse(GURL* location,
44 int* http_status_code) OVERRIDE; 45 int* http_status_code) OVERRIDE;
(...skipping 26 matching lines...) Expand all
71 scoped_ptr<net::HttpResponseInfo> response_info_; 72 scoped_ptr<net::HttpResponseInfo> response_info_;
72 int64 remaining_bytes_; 73 int64 remaining_bytes_;
73 net::HttpByteRange byte_range_; 74 net::HttpByteRange byte_range_;
74 75
75 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); 76 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob);
76 }; 77 };
77 78
78 } // namespace fileapi 79 } // namespace fileapi
79 80
80 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ 81 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_dir_url_request_job_unittest.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