| 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 <stdint.h> |    8 #include <stdint.h> | 
|    9  |    9  | 
|   10 #include <map> |   10 #include <map> | 
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  127   } |  127   } | 
|  128  |  128  | 
|  129   // net::URLRequestJob overrides: |  129   // net::URLRequestJob overrides: | 
|  130   void Start() override; |  130   void Start() override; | 
|  131   void Kill() override; |  131   void Kill() override; | 
|  132   net::LoadState GetLoadState() const override; |  132   net::LoadState GetLoadState() const override; | 
|  133   bool GetCharset(std::string* charset) override; |  133   bool GetCharset(std::string* charset) override; | 
|  134   bool GetMimeType(std::string* mime_type) const override; |  134   bool GetMimeType(std::string* mime_type) const override; | 
|  135   void GetResponseInfo(net::HttpResponseInfo* info) override; |  135   void GetResponseInfo(net::HttpResponseInfo* info) override; | 
|  136   void GetLoadTimingInfo(net::LoadTimingInfo* load_timing_info) const override; |  136   void GetLoadTimingInfo(net::LoadTimingInfo* load_timing_info) const override; | 
|  137   int GetResponseCode() const override; |  | 
|  138   void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override; |  137   void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override; | 
|  139   int ReadRawData(net::IOBuffer* buf, int buf_size) override; |  138   int ReadRawData(net::IOBuffer* buf, int buf_size) override; | 
|  140  |  139  | 
|  141   //---------------------------------------------------------------------------- |  140   //---------------------------------------------------------------------------- | 
|  142   // The following are intended for use by ServiceWorker(Blob|Stream)Reader. |  141   // The following are intended for use by ServiceWorker(Blob|Stream)Reader. | 
|  143   void OnResponseStarted(); |  142   void OnResponseStarted(); | 
|  144   void OnReadRawDataComplete(int bytes_read); |  143   void OnReadRawDataComplete(int bytes_read); | 
|  145   void RecordResult(ServiceWorkerMetrics::URLRequestJobResult result); |  144   void RecordResult(ServiceWorkerMetrics::URLRequestJobResult result); | 
|  146   //---------------------------------------------------------------------------- |  145   //---------------------------------------------------------------------------- | 
|  147  |  146  | 
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  331   std::unique_ptr<FileSizeResolver> file_size_resolver_; |  330   std::unique_ptr<FileSizeResolver> file_size_resolver_; | 
|  332  |  331  | 
|  333   base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; |  332   base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; | 
|  334  |  333  | 
|  335   DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); |  334   DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); | 
|  336 }; |  335 }; | 
|  337  |  336  | 
|  338 }  // namespace content |  337 }  // namespace content | 
|  339  |  338  | 
|  340 #endif  // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ |  339 #endif  // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ | 
| OLD | NEW |