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

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

Issue 2824583003: Remove URLRequestJob::GetResponseCode implementations from AppCache. (Closed)
Patch Set: Fix Created 3 years, 8 months 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 void GetResponseInfo(net::HttpResponseInfo* info) override; 151 void GetResponseInfo(net::HttpResponseInfo* info) override;
152 int ReadRawData(net::IOBuffer* buf, int buf_size) override; 152 int ReadRawData(net::IOBuffer* buf, int buf_size) override;
153 net::HostPortPair GetSocketAddress() const override; 153 net::HostPortPair GetSocketAddress() const override;
154 154
155 // Sets extra request headers for Job types that support request headers. 155 // Sets extra request headers for Job types that support request headers.
156 // This is how we get informed of range-requests. 156 // This is how we get informed of range-requests.
157 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override; 157 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override;
158 158
159 // FilterContext methods 159 // FilterContext methods
160 bool GetMimeType(std::string* mime_type) const override; 160 bool GetMimeType(std::string* mime_type) const override;
161 int GetResponseCode() const override;
162 161
163 // Invokes |prepare_to_restart_callback_| and then calls 162 // Invokes |prepare_to_restart_callback_| and then calls
164 // net::URLRequestJob::NotifyRestartRequired. 163 // net::URLRequestJob::NotifyRestartRequired.
165 void NotifyRestartRequired(); 164 void NotifyRestartRequired();
166 165
167 AppCacheHost* host_; 166 AppCacheHost* host_;
168 AppCacheStorage* storage_; 167 AppCacheStorage* storage_;
169 base::TimeTicks start_time_tick_; 168 base::TimeTicks start_time_tick_;
170 bool has_been_started_; 169 bool has_been_started_;
171 bool has_been_killed_; 170 bool has_been_killed_;
(...skipping 12 matching lines...) Expand all
184 std::unique_ptr<AppCacheResponseReader> reader_; 183 std::unique_ptr<AppCacheResponseReader> reader_;
185 scoped_refptr<AppCache> cache_; 184 scoped_refptr<AppCache> cache_;
186 scoped_refptr<AppCacheGroup> group_; 185 scoped_refptr<AppCacheGroup> group_;
187 const OnPrepareToRestartCallback on_prepare_to_restart_callback_; 186 const OnPrepareToRestartCallback on_prepare_to_restart_callback_;
188 base::WeakPtrFactory<AppCacheURLRequestJob> weak_factory_; 187 base::WeakPtrFactory<AppCacheURLRequestJob> weak_factory_;
189 }; 188 };
190 189
191 } // namespace content 190 } // namespace content
192 191
193 #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/appcache/appcache_update_job_unittest.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