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

Side by Side Diff: storage/browser/fileapi/file_system_dir_url_request_job.h

Issue 1410643007: URLRequestJob: change ReadRawData contract (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address michaeln's comment Created 5 years, 1 month 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
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 STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 public: 26 public:
27 FileSystemDirURLRequestJob( 27 FileSystemDirURLRequestJob(
28 net::URLRequest* request, 28 net::URLRequest* request,
29 net::NetworkDelegate* network_delegate, 29 net::NetworkDelegate* network_delegate,
30 const std::string& storage_domain, 30 const std::string& storage_domain,
31 FileSystemContext* file_system_context); 31 FileSystemContext* file_system_context);
32 32
33 // URLRequestJob methods: 33 // URLRequestJob methods:
34 void Start() override; 34 void Start() override;
35 void Kill() override; 35 void Kill() override;
36 bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) override; 36 int ReadRawData(net::IOBuffer* buf, int buf_size) override;
37 bool GetCharset(std::string* charset) override; 37 bool GetCharset(std::string* charset) override;
38 38
39 // FilterContext methods (via URLRequestJob): 39 // FilterContext methods (via URLRequestJob):
40 bool GetMimeType(std::string* mime_type) const override; 40 bool GetMimeType(std::string* mime_type) const override;
41 // TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate 41 // TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate
42 // an HTTP response. 42 // an HTTP response.
43 43
44 private: 44 private:
45 class CallbackDispatcher; 45 class CallbackDispatcher;
46 46
(...skipping 10 matching lines...) Expand all
57 const std::string storage_domain_; 57 const std::string storage_domain_;
58 FileSystemContext* file_system_context_; 58 FileSystemContext* file_system_context_;
59 base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_; 59 base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob); 61 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob);
62 }; 62 };
63 63
64 } // namespace storage 64 } // namespace storage
65 65
66 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ 66 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « storage/browser/blob/blob_url_request_job.cc ('k') | storage/browser/fileapi/file_system_dir_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698