Chromium Code Reviews| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 // BufferedResourceLoader::Start() callback for initial load. | 132 // BufferedResourceLoader::Start() callback for initial load. |
| 133 void StartCallback(); | 133 void StartCallback(); |
| 134 | 134 |
| 135 // Check if we've moved to a new url and update has_signgle_origin_. | 135 // Check if we've moved to a new url and update has_signgle_origin_. |
| 136 void UpdateSingleOrigin(); | 136 void UpdateSingleOrigin(); |
| 137 | 137 |
| 138 // MultiBufferReader progress callback. | 138 // MultiBufferReader progress callback. |
| 139 void ProgressCallback(int64 begin, int64 end); | 139 void ProgressCallback(int64 begin, int64 end); |
| 140 | 140 |
| 141 // call downloading_cb_ if needed. | 141 // call downloading_cb_ if needed. |
| 142 void UpdateLoadingState(); | 142 void UpdateLoadingState(bool force_loading); |
|
liberato (no reviews please)
2015/12/08 21:59:33
please add docs.
hubbe
2015/12/08 22:25:59
Done.
| |
| 143 | 143 |
| 144 // Update |reader_|'s preload and buffer settings. | 144 // Update |reader_|'s preload and buffer settings. |
| 145 void UpdateBufferSizes(); | 145 void UpdateBufferSizes(); |
| 146 | 146 |
| 147 // crossorigin attribute on the corresponding HTML media element, if any. | 147 // crossorigin attribute on the corresponding HTML media element, if any. |
| 148 UrlData::CORSMode cors_mode_; | 148 UrlData::CORSMode cors_mode_; |
| 149 | 149 |
| 150 // URL of the resource requested. | 150 // URL of the resource requested. |
| 151 scoped_refptr<UrlData> url_data_; | 151 scoped_refptr<UrlData> url_data_; |
| 152 | 152 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 231 // reaching into this class from multiple threads to attain a WeakPtr. | 231 // reaching into this class from multiple threads to attain a WeakPtr. |
| 232 base::WeakPtr<MultibufferDataSource> weak_ptr_; | 232 base::WeakPtr<MultibufferDataSource> weak_ptr_; |
| 233 base::WeakPtrFactory<MultibufferDataSource> weak_factory_; | 233 base::WeakPtrFactory<MultibufferDataSource> weak_factory_; |
| 234 | 234 |
| 235 DISALLOW_COPY_AND_ASSIGN(MultibufferDataSource); | 235 DISALLOW_COPY_AND_ASSIGN(MultibufferDataSource); |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 } // namespace media | 238 } // namespace media |
| 239 | 239 |
| 240 #endif // MEDIA_BLINK_MULTIBUFFER_DATA_SOURCE_H_ | 240 #endif // MEDIA_BLINK_MULTIBUFFER_DATA_SOURCE_H_ |
| OLD | NEW |