| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MEDIA_BLINK_MULTIBUFFER_DATA_SOURCE_H_ | 5 #ifndef MEDIA_BLINK_MULTIBUFFER_DATA_SOURCE_H_ |
| 6 #define MEDIA_BLINK_MULTIBUFFER_DATA_SOURCE_H_ | 6 #define MEDIA_BLINK_MULTIBUFFER_DATA_SOURCE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 int64_t total_bytes_; | 167 int64_t total_bytes_; |
| 168 | 168 |
| 169 // This value will be true if this data source can only support streaming. | 169 // This value will be true if this data source can only support streaming. |
| 170 // i.e. range request is not supported. | 170 // i.e. range request is not supported. |
| 171 bool streaming_; | 171 bool streaming_; |
| 172 | 172 |
| 173 // This is the loading state that we last reported to our owner through | 173 // This is the loading state that we last reported to our owner through |
| 174 // |downloading_cb_|. | 174 // |downloading_cb_|. |
| 175 bool loading_; | 175 bool loading_; |
| 176 | 176 |
| 177 // True if a failure has occured. |
| 178 bool failed_; |
| 179 |
| 177 // The task runner of the render thread. | 180 // The task runner of the render thread. |
| 178 const scoped_refptr<base::SingleThreadTaskRunner> render_task_runner_; | 181 const scoped_refptr<base::SingleThreadTaskRunner> render_task_runner_; |
| 179 | 182 |
| 180 // Shared cache. | 183 // Shared cache. |
| 181 linked_ptr<UrlIndex> url_index_; | 184 linked_ptr<UrlIndex> url_index_; |
| 182 | 185 |
| 183 // A webframe for loading. | 186 // A webframe for loading. |
| 184 blink::WebFrame* frame_; | 187 blink::WebFrame* frame_; |
| 185 | 188 |
| 186 // A resource reader for the media resource. | 189 // A resource reader for the media resource. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 // reaching into this class from multiple threads to attain a WeakPtr. | 247 // reaching into this class from multiple threads to attain a WeakPtr. |
| 245 base::WeakPtr<MultibufferDataSource> weak_ptr_; | 248 base::WeakPtr<MultibufferDataSource> weak_ptr_; |
| 246 base::WeakPtrFactory<MultibufferDataSource> weak_factory_; | 249 base::WeakPtrFactory<MultibufferDataSource> weak_factory_; |
| 247 | 250 |
| 248 DISALLOW_COPY_AND_ASSIGN(MultibufferDataSource); | 251 DISALLOW_COPY_AND_ASSIGN(MultibufferDataSource); |
| 249 }; | 252 }; |
| 250 | 253 |
| 251 } // namespace media | 254 } // namespace media |
| 252 | 255 |
| 253 #endif // MEDIA_BLINK_MULTIBUFFER_DATA_SOURCE_H_ | 256 #endif // MEDIA_BLINK_MULTIBUFFER_DATA_SOURCE_H_ |
| OLD | NEW |