OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_RESOURCE_MULTIBUFFER_DATA_PROVIDER_H_ | 5 #ifndef MEDIA_BLINK_RESOURCE_MULTIBUFFER_DATA_PROVIDER_H_ |
6 #define MEDIA_BLINK_RESOURCE_MULTIBUFFER_DATA_PROVIDER_H_ | 6 #define MEDIA_BLINK_RESOURCE_MULTIBUFFER_DATA_PROVIDER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 // Keeps track of an active WebAssociatedURLLoader and associated state. | 113 // Keeps track of an active WebAssociatedURLLoader and associated state. |
114 std::unique_ptr<ActiveLoader> active_loader_; | 114 std::unique_ptr<ActiveLoader> active_loader_; |
115 | 115 |
116 // Injected WebAssociatedURLLoader instance for testing purposes. | 116 // Injected WebAssociatedURLLoader instance for testing purposes. |
117 std::unique_ptr<blink::WebAssociatedURLLoader> test_loader_; | 117 std::unique_ptr<blink::WebAssociatedURLLoader> test_loader_; |
118 | 118 |
119 // When we encounter a redirect, this is the source of the redirect. | 119 // When we encounter a redirect, this is the source of the redirect. |
120 GURL redirects_to_; | 120 GURL redirects_to_; |
121 | 121 |
| 122 // If the server tries to gives us more bytes than we want, this how |
| 123 // many bytes we need to discard before we get to the right place. |
| 124 uint64_t bytes_to_discard_ = 0; |
| 125 |
122 base::WeakPtrFactory<ResourceMultiBufferDataProvider> weak_factory_; | 126 base::WeakPtrFactory<ResourceMultiBufferDataProvider> weak_factory_; |
123 }; | 127 }; |
124 | 128 |
125 } // namespace media | 129 } // namespace media |
126 | 130 |
127 #endif // MEDIA_BLINK_RESOURCE_MULTIBUFFER_DATA_PROVIDER_H_ | 131 #endif // MEDIA_BLINK_RESOURCE_MULTIBUFFER_DATA_PROVIDER_H_ |
OLD | NEW |