| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // net::URLRequestJob overrides: | 80 // net::URLRequestJob overrides: |
| 81 void Start() override; | 81 void Start() override; |
| 82 void Kill() override; | 82 void Kill() override; |
| 83 net::LoadState GetLoadState() const override; | 83 net::LoadState GetLoadState() const override; |
| 84 bool GetCharset(std::string* charset) override; | 84 bool GetCharset(std::string* charset) override; |
| 85 bool GetMimeType(std::string* mime_type) const override; | 85 bool GetMimeType(std::string* mime_type) const override; |
| 86 void GetResponseInfo(net::HttpResponseInfo* info) override; | 86 void GetResponseInfo(net::HttpResponseInfo* info) override; |
| 87 void GetLoadTimingInfo(net::LoadTimingInfo* load_timing_info) const override; | 87 void GetLoadTimingInfo(net::LoadTimingInfo* load_timing_info) const override; |
| 88 int GetResponseCode() const override; | 88 int GetResponseCode() const override; |
| 89 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override; | 89 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override; |
| 90 bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) override; | 90 int ReadRawData(net::IOBuffer* buf, int buf_size) override; |
| 91 | 91 |
| 92 // net::URLRequest::Delegate overrides that read the blob from the | 92 // net::URLRequest::Delegate overrides that read the blob from the |
| 93 // ServiceWorkerFetchResponse. | 93 // ServiceWorkerFetchResponse. |
| 94 void OnReceivedRedirect(net::URLRequest* request, | 94 void OnReceivedRedirect(net::URLRequest* request, |
| 95 const net::RedirectInfo& redirect_info, | 95 const net::RedirectInfo& redirect_info, |
| 96 bool* defer_redirect) override; | 96 bool* defer_redirect) override; |
| 97 void OnAuthRequired(net::URLRequest* request, | 97 void OnAuthRequired(net::URLRequest* request, |
| 98 net::AuthChallengeInfo* auth_info) override; | 98 net::AuthChallengeInfo* auth_info) override; |
| 99 void OnCertificateRequested( | 99 void OnCertificateRequested( |
| 100 net::URLRequest* request, | 100 net::URLRequest* request, |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 bool did_record_result_ = false; | 227 bool did_record_result_ = false; |
| 228 | 228 |
| 229 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; | 229 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; |
| 230 | 230 |
| 231 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); | 231 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); |
| 232 }; | 232 }; |
| 233 | 233 |
| 234 } // namespace content | 234 } // namespace content |
| 235 | 235 |
| 236 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ | 236 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ |
| OLD | NEW |