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

Side by Side Diff: storage/browser/blob/blob_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
« no previous file with comments | « net/url_request/url_request_test_job.cc ('k') | storage/browser/blob/blob_url_request_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BLOB_BLOB_URL_REQUEST_JOB_H_ 5 #ifndef STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_
6 #define STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_ 6 #define STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 26 matching lines...) Expand all
37 public: 37 public:
38 BlobURLRequestJob(net::URLRequest* request, 38 BlobURLRequestJob(net::URLRequest* request,
39 net::NetworkDelegate* network_delegate, 39 net::NetworkDelegate* network_delegate,
40 BlobDataHandle* blob_handle, 40 BlobDataHandle* blob_handle,
41 storage::FileSystemContext* file_system_context, 41 storage::FileSystemContext* file_system_context,
42 base::SingleThreadTaskRunner* resolving_thread_task_runner); 42 base::SingleThreadTaskRunner* resolving_thread_task_runner);
43 43
44 // net::URLRequestJob methods. 44 // net::URLRequestJob methods.
45 void Start() override; 45 void Start() override;
46 void Kill() override; 46 void Kill() override;
47 bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) override; 47 int ReadRawData(net::IOBuffer* buf, int buf_size) override;
48 bool GetMimeType(std::string* mime_type) const override; 48 bool GetMimeType(std::string* mime_type) const override;
49 void GetResponseInfo(net::HttpResponseInfo* info) override; 49 void GetResponseInfo(net::HttpResponseInfo* info) override;
50 int GetResponseCode() const override; 50 int GetResponseCode() const override;
51 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override; 51 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override;
52 52
53 protected: 53 protected:
54 ~BlobURLRequestJob() override; 54 ~BlobURLRequestJob() override;
55 55
56 private: 56 private:
57 typedef std::map<size_t, FileStreamReader*> IndexToReaderMap; 57 typedef std::map<size_t, FileStreamReader*> IndexToReaderMap;
(...skipping 17 matching lines...) Expand all
75 scoped_ptr<net::HttpResponseInfo> response_info_; 75 scoped_ptr<net::HttpResponseInfo> response_info_;
76 76
77 base::WeakPtrFactory<BlobURLRequestJob> weak_factory_; 77 base::WeakPtrFactory<BlobURLRequestJob> weak_factory_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob); 79 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob);
80 }; 80 };
81 81
82 } // namespace storage 82 } // namespace storage
83 83
84 #endif // STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_ 84 #endif // STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_test_job.cc ('k') | storage/browser/blob/blob_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698