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

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

Issue 1467603002: URLRequestJob: change ReadRawData contract (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add done_reading_called_ to MockNetworkTransaction Created 5 years 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 14 matching lines...) Expand all
25 public: 25 public:
26 FileSystemDirURLRequestJob( 26 FileSystemDirURLRequestJob(
27 net::URLRequest* request, 27 net::URLRequest* request,
28 net::NetworkDelegate* network_delegate, 28 net::NetworkDelegate* network_delegate,
29 const std::string& storage_domain, 29 const std::string& storage_domain,
30 FileSystemContext* file_system_context); 30 FileSystemContext* file_system_context);
31 31
32 // URLRequestJob methods: 32 // URLRequestJob methods:
33 void Start() override; 33 void Start() override;
34 void Kill() override; 34 void Kill() override;
35 bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) override; 35 int ReadRawData(net::IOBuffer* buf, int buf_size) override;
36 bool GetCharset(std::string* charset) override; 36 bool GetCharset(std::string* charset) override;
37 37
38 // FilterContext methods (via URLRequestJob): 38 // FilterContext methods (via URLRequestJob):
39 bool GetMimeType(std::string* mime_type) const override; 39 bool GetMimeType(std::string* mime_type) const override;
40 // TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate 40 // TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate
41 // an HTTP response. 41 // an HTTP response.
42 42
43 private: 43 private:
44 class CallbackDispatcher; 44 class CallbackDispatcher;
45 45
(...skipping 18 matching lines...) Expand all
64 const std::string storage_domain_; 64 const std::string storage_domain_;
65 FileSystemContext* file_system_context_; 65 FileSystemContext* file_system_context_;
66 base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_; 66 base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob); 68 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob);
69 }; 69 };
70 70
71 } // namespace storage 71 } // namespace storage
72 72
73 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ 73 #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