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

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

Issue 10447083: Rename webkit_blob::FileReader to FileStreamReader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge master branch. Created 8 years, 6 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/platform_file.h" 14 #include "base/platform_file.h"
15 #include "net/http/http_byte_range.h" 15 #include "net/http/http_byte_range.h"
16 #include "net/url_request/url_request_job.h" 16 #include "net/url_request/url_request_job.h"
17 #include "webkit/fileapi/fileapi_export.h" 17 #include "webkit/fileapi/fileapi_export.h"
18 18
19 class GURL; 19 class GURL;
20 class FilePath; 20 class FilePath;
21 21
22 namespace webkit_blob { 22 namespace webkit_blob {
23 class FileReader; 23 class FileStreamReader;
24 } 24 }
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(
(...skipping 24 matching lines...) Expand all
58 void StartAsync(); 58 void StartAsync();
59 void DidGetMetadata( 59 void DidGetMetadata(
60 base::PlatformFileError error_code, 60 base::PlatformFileError error_code,
61 const base::PlatformFileInfo& file_info, 61 const base::PlatformFileInfo& file_info,
62 const FilePath& platform_path); 62 const FilePath& platform_path);
63 void DidRead(int result); 63 void DidRead(int result);
64 void NotifyFailed(int rv); 64 void NotifyFailed(int rv);
65 65
66 FileSystemContext* file_system_context_; 66 FileSystemContext* file_system_context_;
67 base::WeakPtrFactory<FileSystemURLRequestJob> weak_factory_; 67 base::WeakPtrFactory<FileSystemURLRequestJob> weak_factory_;
68 scoped_ptr<webkit_blob::FileReader> reader_; 68 scoped_ptr<webkit_blob::FileStreamReader> reader_;
69 bool is_directory_; 69 bool is_directory_;
70 scoped_ptr<net::HttpResponseInfo> response_info_; 70 scoped_ptr<net::HttpResponseInfo> response_info_;
71 int64 remaining_bytes_; 71 int64 remaining_bytes_;
72 net::HttpByteRange byte_range_; 72 net::HttpByteRange byte_range_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); 74 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob);
75 }; 75 };
76 76
77 } // namespace fileapi 77 } // namespace fileapi
78 78
79 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ 79 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_mount_point_provider.h ('k') | webkit/fileapi/file_system_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698