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

Side by Side Diff: content/browser/appcache/appcache_url_request_job.h

Issue 1410643007: URLRequestJob: change ReadRawData contract (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review 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 CONTENT_BROWSER_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void SetupRangeResponse(); 129 void SetupRangeResponse();
130 130
131 // AppCacheResponseReader completion callback 131 // AppCacheResponseReader completion callback
132 void OnReadComplete(int result); 132 void OnReadComplete(int result);
133 133
134 // net::URLRequestJob methods, see url_request_job.h for doc comments 134 // net::URLRequestJob methods, see url_request_job.h for doc comments
135 void Start() override; 135 void Start() override;
136 net::LoadState GetLoadState() const override; 136 net::LoadState GetLoadState() const override;
137 bool GetCharset(std::string* charset) override; 137 bool GetCharset(std::string* charset) override;
138 void GetResponseInfo(net::HttpResponseInfo* info) override; 138 void GetResponseInfo(net::HttpResponseInfo* info) override;
139 bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) override; 139 int ReadRawData(net::IOBuffer* buf, int buf_size) override;
140 140
141 // Sets extra request headers for Job types that support request headers. 141 // Sets extra request headers for Job types that support request headers.
142 // This is how we get informed of range-requests. 142 // This is how we get informed of range-requests.
143 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override; 143 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override;
144 144
145 // FilterContext methods 145 // FilterContext methods
146 bool GetMimeType(std::string* mime_type) const override; 146 bool GetMimeType(std::string* mime_type) const override;
147 int GetResponseCode() const override; 147 int GetResponseCode() const override;
148 148
149 AppCacheHost* host_; 149 AppCacheHost* host_;
(...skipping 16 matching lines...) Expand all
166 scoped_ptr<net::HttpResponseInfo> range_response_info_; 166 scoped_ptr<net::HttpResponseInfo> range_response_info_;
167 scoped_ptr<AppCacheResponseReader> reader_; 167 scoped_ptr<AppCacheResponseReader> reader_;
168 scoped_refptr<AppCache> cache_; 168 scoped_refptr<AppCache> cache_;
169 scoped_refptr<AppCacheGroup> group_; 169 scoped_refptr<AppCacheGroup> group_;
170 base::WeakPtrFactory<AppCacheURLRequestJob> weak_factory_; 170 base::WeakPtrFactory<AppCacheURLRequestJob> weak_factory_;
171 }; 171 };
172 172
173 } // namespace content 173 } // namespace content
174 174
175 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_ 175 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698