OLD | NEW |
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 "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/common/service_worker/service_worker_status_code.h" | 10 #include "content/common/service_worker/service_worker_status_code.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 virtual int GetResponseCode() const OVERRIDE; | 54 virtual int GetResponseCode() const OVERRIDE; |
55 virtual void SetExtraRequestHeaders( | 55 virtual void SetExtraRequestHeaders( |
56 const net::HttpRequestHeaders& headers) OVERRIDE; | 56 const net::HttpRequestHeaders& headers) OVERRIDE; |
57 virtual bool ReadRawData(net::IOBuffer* buf, | 57 virtual bool ReadRawData(net::IOBuffer* buf, |
58 int buf_size, | 58 int buf_size, |
59 int *bytes_read) OVERRIDE; | 59 int *bytes_read) OVERRIDE; |
60 | 60 |
61 // net::URLRequest::Delegate overrides that read the blob from the | 61 // net::URLRequest::Delegate overrides that read the blob from the |
62 // ServiceWorkerFetchResponse. | 62 // ServiceWorkerFetchResponse. |
63 virtual void OnReceivedRedirect(net::URLRequest* request, | 63 virtual void OnReceivedRedirect(net::URLRequest* request, |
64 const GURL& new_url, | 64 const net::RedirectInfo& redirect_info, |
65 bool* defer_redirect) OVERRIDE; | 65 bool* defer_redirect) OVERRIDE; |
66 virtual void OnAuthRequired(net::URLRequest* request, | 66 virtual void OnAuthRequired(net::URLRequest* request, |
67 net::AuthChallengeInfo* auth_info) OVERRIDE; | 67 net::AuthChallengeInfo* auth_info) OVERRIDE; |
68 virtual void OnCertificateRequested( | 68 virtual void OnCertificateRequested( |
69 net::URLRequest* request, | 69 net::URLRequest* request, |
70 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; | 70 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; |
71 virtual void OnSSLCertificateError(net::URLRequest* request, | 71 virtual void OnSSLCertificateError(net::URLRequest* request, |
72 const net::SSLInfo& ssl_info, | 72 const net::SSLInfo& ssl_info, |
73 bool fatal) OVERRIDE; | 73 bool fatal) OVERRIDE; |
74 virtual void OnBeforeNetworkStart(net::URLRequest* request, | 74 virtual void OnBeforeNetworkStart(net::URLRequest* request, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 scoped_ptr<net::URLRequest> blob_request_; | 128 scoped_ptr<net::URLRequest> blob_request_; |
129 | 129 |
130 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; | 130 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; |
131 | 131 |
132 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); | 132 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); |
133 }; | 133 }; |
134 | 134 |
135 } // namespace content | 135 } // namespace content |
136 | 136 |
137 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ | 137 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ |
OLD | NEW |