OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 NET_URL_REQUEST_URL_REQUEST_SIMPLE_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_SIMPLE_JOB_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_SIMPLE_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_SIMPLE_JOB_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
11 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
12 #include "base/strings/string_piece.h" | 14 #include "base/strings/string_piece.h" |
13 #include "net/base/completion_callback.h" | 15 #include "net/base/completion_callback.h" |
14 #include "net/base/net_export.h" | 16 #include "net/base/net_export.h" |
15 #include "net/url_request/url_range_request_job.h" | 17 #include "net/url_request/url_range_request_job.h" |
16 | 18 |
17 namespace base { | 19 namespace base { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 66 |
65 void StartAsync(); | 67 void StartAsync(); |
66 | 68 |
67 private: | 69 private: |
68 void OnGetDataCompleted(int result); | 70 void OnGetDataCompleted(int result); |
69 | 71 |
70 HttpByteRange byte_range_; | 72 HttpByteRange byte_range_; |
71 std::string mime_type_; | 73 std::string mime_type_; |
72 std::string charset_; | 74 std::string charset_; |
73 scoped_refptr<base::RefCountedMemory> data_; | 75 scoped_refptr<base::RefCountedMemory> data_; |
74 int64 next_data_offset_; | 76 int64_t next_data_offset_; |
75 scoped_refptr<base::TaskRunner> task_runner_; | 77 scoped_refptr<base::TaskRunner> task_runner_; |
76 base::WeakPtrFactory<URLRequestSimpleJob> weak_factory_; | 78 base::WeakPtrFactory<URLRequestSimpleJob> weak_factory_; |
77 }; | 79 }; |
78 | 80 |
79 } // namespace net | 81 } // namespace net |
80 | 82 |
81 #endif // NET_URL_REQUEST_URL_REQUEST_SIMPLE_JOB_H_ | 83 #endif // NET_URL_REQUEST_URL_REQUEST_SIMPLE_JOB_H_ |
OLD | NEW |