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

Side by Side Diff: content/browser/appcache/appcache_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, 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/callback.h" 10 #include "base/callback.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void SetupRangeResponse(); 141 void SetupRangeResponse();
142 142
143 // AppCacheResponseReader completion callback 143 // AppCacheResponseReader completion callback
144 void OnReadComplete(int result); 144 void OnReadComplete(int result);
145 145
146 // net::URLRequestJob methods, see url_request_job.h for doc comments 146 // net::URLRequestJob methods, see url_request_job.h for doc comments
147 void Start() override; 147 void Start() override;
148 net::LoadState GetLoadState() const override; 148 net::LoadState GetLoadState() const override;
149 bool GetCharset(std::string* charset) override; 149 bool GetCharset(std::string* charset) override;
150 void GetResponseInfo(net::HttpResponseInfo* info) override; 150 void GetResponseInfo(net::HttpResponseInfo* info) override;
151 bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) override; 151 int ReadRawData(net::IOBuffer* buf, int buf_size) override;
152 152
153 // Sets extra request headers for Job types that support request headers. 153 // Sets extra request headers for Job types that support request headers.
154 // This is how we get informed of range-requests. 154 // This is how we get informed of range-requests.
155 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override; 155 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override;
156 156
157 // FilterContext methods 157 // FilterContext methods
158 bool GetMimeType(std::string* mime_type) const override; 158 bool GetMimeType(std::string* mime_type) const override;
159 int GetResponseCode() const override; 159 int GetResponseCode() const override;
160 160
161 // Invokes |prepare_to_restart_callback_| and then calls 161 // Invokes |prepare_to_restart_callback_| and then calls
(...skipping 21 matching lines...) Expand all
183 scoped_ptr<AppCacheResponseReader> reader_; 183 scoped_ptr<AppCacheResponseReader> reader_;
184 scoped_refptr<AppCache> cache_; 184 scoped_refptr<AppCache> cache_;
185 scoped_refptr<AppCacheGroup> group_; 185 scoped_refptr<AppCacheGroup> group_;
186 const OnPrepareToRestartCallback on_prepare_to_restart_callback_; 186 const OnPrepareToRestartCallback on_prepare_to_restart_callback_;
187 base::WeakPtrFactory<AppCacheURLRequestJob> weak_factory_; 187 base::WeakPtrFactory<AppCacheURLRequestJob> weak_factory_;
188 }; 188 };
189 189
190 } // namespace content 190 } // namespace content
191 191
192 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_ 192 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « content/browser/android/url_request_content_job.cc ('k') | content/browser/appcache/appcache_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698