OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_ | 5 #ifndef WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_ |
6 #define WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_ | 6 #define WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // URL of the resource requested. | 140 // URL of the resource requested. |
141 GURL url_; | 141 GURL url_; |
142 | 142 |
143 // Members for total bytes of the requested object. It is written once on | 143 // Members for total bytes of the requested object. It is written once on |
144 // render thread but may be read from any thread. However reading of this | 144 // render thread but may be read from any thread. However reading of this |
145 // member is guaranteed to happen after it is first written, so we don't | 145 // member is guaranteed to happen after it is first written, so we don't |
146 // need to protect it. | 146 // need to protect it. |
147 int64 total_bytes_; | 147 int64 total_bytes_; |
148 int64 buffered_bytes_; | 148 int64 buffered_bytes_; |
149 | 149 |
150 // True if this data source is considered loaded. | |
151 bool loaded_; | |
152 | |
153 // This value will be true if this data source can only support streaming. | 150 // This value will be true if this data source can only support streaming. |
154 // i.e. range request is not supported. | 151 // i.e. range request is not supported. |
155 bool streaming_; | 152 bool streaming_; |
156 | 153 |
157 // A webframe for loading. | 154 // A webframe for loading. |
158 WebKit::WebFrame* frame_; | 155 WebKit::WebFrame* frame_; |
159 | 156 |
160 // A resource loader for the media resource. | 157 // A resource loader for the media resource. |
161 scoped_refptr<BufferedResourceLoader> loader_; | 158 scoped_refptr<BufferedResourceLoader> loader_; |
162 | 159 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 float playback_rate_; | 223 float playback_rate_; |
227 | 224 |
228 scoped_refptr<media::MediaLog> media_log_; | 225 scoped_refptr<media::MediaLog> media_log_; |
229 | 226 |
230 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource); | 227 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource); |
231 }; | 228 }; |
232 | 229 |
233 } // namespace webkit_media | 230 } // namespace webkit_media |
234 | 231 |
235 #endif // WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_ | 232 #endif // WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_ |
OLD | NEW |