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

Side by Side Diff: content/browser/service_worker/service_worker_url_request_job.h

Issue 398903002: Plumb redirect info out of net, through content, and into child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: darin comments Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual int GetResponseCode() const OVERRIDE; 57 virtual int GetResponseCode() const OVERRIDE;
58 virtual void SetExtraRequestHeaders( 58 virtual void SetExtraRequestHeaders(
59 const net::HttpRequestHeaders& headers) OVERRIDE; 59 const net::HttpRequestHeaders& headers) OVERRIDE;
60 virtual bool ReadRawData(net::IOBuffer* buf, 60 virtual bool ReadRawData(net::IOBuffer* buf,
61 int buf_size, 61 int buf_size,
62 int *bytes_read) OVERRIDE; 62 int *bytes_read) OVERRIDE;
63 63
64 // net::URLRequest::Delegate overrides that read the blob from the 64 // net::URLRequest::Delegate overrides that read the blob from the
65 // ServiceWorkerFetchResponse. 65 // ServiceWorkerFetchResponse.
66 virtual void OnReceivedRedirect(net::URLRequest* request, 66 virtual void OnReceivedRedirect(net::URLRequest* request,
67 const GURL& new_url, 67 const net::RedirectInfo& redirect_info,
68 bool* defer_redirect) OVERRIDE; 68 bool* defer_redirect) OVERRIDE;
69 virtual void OnAuthRequired(net::URLRequest* request, 69 virtual void OnAuthRequired(net::URLRequest* request,
70 net::AuthChallengeInfo* auth_info) OVERRIDE; 70 net::AuthChallengeInfo* auth_info) OVERRIDE;
71 virtual void OnCertificateRequested( 71 virtual void OnCertificateRequested(
72 net::URLRequest* request, 72 net::URLRequest* request,
73 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; 73 net::SSLCertRequestInfo* cert_request_info) OVERRIDE;
74 virtual void OnSSLCertificateError(net::URLRequest* request, 74 virtual void OnSSLCertificateError(net::URLRequest* request,
75 const net::SSLInfo& ssl_info, 75 const net::SSLInfo& ssl_info,
76 bool fatal) OVERRIDE; 76 bool fatal) OVERRIDE;
77 virtual void OnBeforeNetworkStart(net::URLRequest* request, 77 virtual void OnBeforeNetworkStart(net::URLRequest* request,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 scoped_ptr<net::URLRequest> blob_request_; 135 scoped_ptr<net::URLRequest> blob_request_;
136 136
137 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; 137 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_;
138 138
139 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); 139 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob);
140 }; 140 };
141 141
142 } // namespace content 142 } // namespace content
143 143
144 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ 144 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698