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

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

Issue 1772303002: CORS-RFC1918: Teach appcache responses to passthrough their socket address. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test. Created 4 years, 9 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
« no previous file with comments | « no previous file | content/browser/appcache/appcache_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 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 // AppCacheResponseReader completion callback 146 // AppCacheResponseReader completion callback
147 void OnReadComplete(int result); 147 void OnReadComplete(int result);
148 148
149 // net::URLRequestJob methods, see url_request_job.h for doc comments 149 // net::URLRequestJob methods, see url_request_job.h for doc comments
150 void Start() override; 150 void Start() override;
151 net::LoadState GetLoadState() const override; 151 net::LoadState GetLoadState() const override;
152 bool GetCharset(std::string* charset) override; 152 bool GetCharset(std::string* charset) override;
153 void GetResponseInfo(net::HttpResponseInfo* info) override; 153 void GetResponseInfo(net::HttpResponseInfo* info) override;
154 int ReadRawData(net::IOBuffer* buf, int buf_size) override; 154 int ReadRawData(net::IOBuffer* buf, int buf_size) override;
155 net::HostPortPair GetSocketAddress() const override;
155 156
156 // Sets extra request headers for Job types that support request headers. 157 // Sets extra request headers for Job types that support request headers.
157 // This is how we get informed of range-requests. 158 // This is how we get informed of range-requests.
158 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override; 159 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override;
159 160
160 // FilterContext methods 161 // FilterContext methods
161 bool GetMimeType(std::string* mime_type) const override; 162 bool GetMimeType(std::string* mime_type) const override;
162 int GetResponseCode() const override; 163 int GetResponseCode() const override;
163 164
164 // Invokes |prepare_to_restart_callback_| and then calls 165 // Invokes |prepare_to_restart_callback_| and then calls
(...skipping 21 matching lines...) Expand all
186 scoped_ptr<AppCacheResponseReader> reader_; 187 scoped_ptr<AppCacheResponseReader> reader_;
187 scoped_refptr<AppCache> cache_; 188 scoped_refptr<AppCache> cache_;
188 scoped_refptr<AppCacheGroup> group_; 189 scoped_refptr<AppCacheGroup> group_;
189 const OnPrepareToRestartCallback on_prepare_to_restart_callback_; 190 const OnPrepareToRestartCallback on_prepare_to_restart_callback_;
190 base::WeakPtrFactory<AppCacheURLRequestJob> weak_factory_; 191 base::WeakPtrFactory<AppCacheURLRequestJob> weak_factory_;
191 }; 192 };
192 193
193 } // namespace content 194 } // namespace content
194 195
195 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_ 196 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/appcache/appcache_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698