| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 void StartAsync(); | 60 void StartAsync(); |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 void OnGetDataCompleted(int result); | 63 void OnGetDataCompleted(int result); |
| 64 | 64 |
| 65 HttpByteRange byte_range_; | 65 HttpByteRange byte_range_; |
| 66 std::string mime_type_; | 66 std::string mime_type_; |
| 67 std::string charset_; | 67 std::string charset_; |
| 68 scoped_refptr<base::RefCountedMemory> data_; | 68 scoped_refptr<base::RefCountedMemory> data_; |
| 69 int data_offset_; | 69 int64 data_offset_; |
| 70 base::WeakPtrFactory<URLRequestSimpleJob> weak_factory_; | 70 base::WeakPtrFactory<URLRequestSimpleJob> weak_factory_; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace net | 73 } // namespace net |
| 74 | 74 |
| 75 #endif // NET_URL_REQUEST_URL_REQUEST_SIMPLE_JOB_H_ | 75 #endif // NET_URL_REQUEST_URL_REQUEST_SIMPLE_JOB_H_ |
| OLD | NEW |