Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: media/blink/resource_multibuffer_data_provider.h

Issue 2979893002: media: Allow suspend on HTTP 200 videos (Closed)
Patch Set: layout test fix Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/blink/multibuffer_data_source_unittest.cc ('k') | media/blink/resource_multibuffer_data_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698