Chromium Code Reviews| Index: content/browser/service_worker/service_worker_write_to_cache_job.h |
| diff --git a/content/browser/service_worker/service_worker_write_to_cache_job.h b/content/browser/service_worker/service_worker_write_to_cache_job.h |
| index fc0c2172be5078dd9e780e99bb93870b2cd65795..2f8e5404378b70f7e864020efcdb0b6d37a0c78c 100644 |
| --- a/content/browser/service_worker/service_worker_write_to_cache_job.h |
| +++ b/content/browser/service_worker/service_worker_write_to_cache_job.h |
| @@ -90,9 +90,7 @@ class CONTENT_EXPORT ServiceWorkerWriteToCacheJob |
| // write data to the disk cache. |
| void InitNetRequest(int extra_load_flags); |
| void StartNetRequest(); |
| - net::URLRequestStatus ReadNetData(net::IOBuffer* buf, |
| - int buf_size, |
| - int* bytes_read); |
| + int ReadNetData(net::IOBuffer* buf, int buf_size); |
| // Callbacks for writing headers and data via |cache_writer_|. Note that since |
| // the MaybeWriteHeaders and MaybeWriteData methods on |cache_writer_| are |
| @@ -113,7 +111,7 @@ class CONTENT_EXPORT ServiceWorkerWriteToCacheJob |
| void OnSSLCertificateError(net::URLRequest* request, |
| const net::SSLInfo& ssl_info, |
| bool fatal) override; |
| - void OnResponseStarted(net::URLRequest* request) override; |
| + void OnResponseStarted(net::URLRequest* request, int net_error) override; |
| void OnReadCompleted(net::URLRequest* request, int bytes_read) override; |
| bool CheckPathRestriction(net::URLRequest* request); |
| @@ -128,12 +126,12 @@ class CONTENT_EXPORT ServiceWorkerWriteToCacheJob |
| // script cache if necessary. |
| int HandleNetData(int bytes_read); |
| - void NotifyStartErrorHelper(const net::URLRequestStatus& status, |
| + void NotifyStartErrorHelper(net::Error net_error, |
| const std::string& status_message); |
| // Returns an error code that is passed in through |status| or a new one if an |
|
falken
2016/09/23 00:39:52
Ah this comment should also be updated (see previo
maksims (do not use this acc)
2016/09/26 05:41:21
Done.
|
| // additional error is found. |
| - net::Error NotifyFinishedCaching(net::URLRequestStatus status, |
| + net::Error NotifyFinishedCaching(net::Error net_error, |
| const std::string& status_message); |
| std::unique_ptr<ServiceWorkerResponseReader> CreateCacheResponseReader(); |