| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_ANDROID_URL_REQUEST_CONTENT_JOB_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_URL_REQUEST_CONTENT_JOB_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_URL_REQUEST_CONTENT_JOB_H_ | 6 #define CONTENT_BROWSER_ANDROID_URL_REQUEST_CONTENT_JOB_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
| 18 #include "net/base/net_errors.h" | 18 #include "net/base/net_errors.h" |
| 19 #include "net/http/http_byte_range.h" | 19 #include "net/http/http_byte_range.h" |
| 20 #include "net/url_request/url_request.h" | 20 #include "net/url_request/url_request.h" |
| 21 #include "net/url_request/url_request_job.h" | 21 #include "net/url_request/url_request_job.h" |
| 22 | 22 |
| 23 namespace base { | 23 namespace base { |
| 24 class TaskRunner; | 24 class TaskRunner; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace file_util { | |
| 28 struct FileInfo; | |
| 29 } | |
| 30 | |
| 31 namespace net { | 27 namespace net { |
| 32 class FileStream; | 28 class FileStream; |
| 33 } | 29 } |
| 34 | 30 |
| 35 namespace content { | 31 namespace content { |
| 36 | 32 |
| 37 // A request job that handles reading content URIs | 33 // A request job that handles reading content URIs |
| 38 class CONTENT_EXPORT URLRequestContentJob : public net::URLRequestJob { | 34 class CONTENT_EXPORT URLRequestContentJob : public net::URLRequestJob { |
| 39 public: | 35 public: |
| 40 URLRequestContentJob( | 36 URLRequestContentJob( |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 bool io_pending_; | 95 bool io_pending_; |
| 100 | 96 |
| 101 base::WeakPtrFactory<URLRequestContentJob> weak_ptr_factory_; | 97 base::WeakPtrFactory<URLRequestContentJob> weak_ptr_factory_; |
| 102 | 98 |
| 103 DISALLOW_COPY_AND_ASSIGN(URLRequestContentJob); | 99 DISALLOW_COPY_AND_ASSIGN(URLRequestContentJob); |
| 104 }; | 100 }; |
| 105 | 101 |
| 106 } // namespace content | 102 } // namespace content |
| 107 | 103 |
| 108 #endif // CONTENT_BROWSER_ANDROID_URL_REQUEST_CONTENT_JOB_H_ | 104 #endif // CONTENT_BROWSER_ANDROID_URL_REQUEST_CONTENT_JOB_H_ |
| OLD | NEW |