| 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_GLUE_MEDIA_BUFFERED_DATA_SOURCE_H_ | 5 #ifndef WEBKIT_GLUE_MEDIA_BUFFERED_DATA_SOURCE_H_ |
| 6 #define WEBKIT_GLUE_MEDIA_BUFFERED_DATA_SOURCE_H_ | 6 #define WEBKIT_GLUE_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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void SetPlaybackRateTask(float playback_rate); | 91 void SetPlaybackRateTask(float playback_rate); |
| 92 | 92 |
| 93 // The method that performs actual read. This method can only be executed on | 93 // The method that performs actual read. This method can only be executed on |
| 94 // the render thread. | 94 // the render thread. |
| 95 void ReadInternal(); | 95 void ReadInternal(); |
| 96 | 96 |
| 97 // Calls |read_callback_| and reset all read parameters. | 97 // Calls |read_callback_| and reset all read parameters. |
| 98 void DoneRead_Locked(int error); | 98 void DoneRead_Locked(int error); |
| 99 | 99 |
| 100 // Calls |initialize_callback_| and reset it. | 100 // Calls |initialize_callback_| and reset it. |
| 101 void DoneInitialization_Locked(media::PipelineError error); | 101 void DoneInitialization_Locked(media::PipelineStatus status); |
| 102 | 102 |
| 103 // Callback method for |loader_| if URL for the resource requested is using | 103 // Callback method for |loader_| if URL for the resource requested is using |
| 104 // HTTP protocol. This method is called when response for initial request is | 104 // HTTP protocol. This method is called when response for initial request is |
| 105 // received. | 105 // received. |
| 106 void HttpInitialStartCallback(int error); | 106 void HttpInitialStartCallback(int error); |
| 107 | 107 |
| 108 // Callback method for |loader_| if URL for the resource requested is using | 108 // Callback method for |loader_| if URL for the resource requested is using |
| 109 // a non-HTTP protocol, e.g. local files. This method is called when response | 109 // a non-HTTP protocol, e.g. local files. This method is called when response |
| 110 // for initial request is received. | 110 // for initial request is received. |
| 111 void NonHttpInitialStartCallback(int error); | 111 void NonHttpInitialStartCallback(int error); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // Keeps track of whether we used a Range header in the initialization | 205 // Keeps track of whether we used a Range header in the initialization |
| 206 // request. | 206 // request. |
| 207 bool using_range_request_; | 207 bool using_range_request_; |
| 208 | 208 |
| 209 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource); | 209 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource); |
| 210 }; | 210 }; |
| 211 | 211 |
| 212 } // namespace webkit_glue | 212 } // namespace webkit_glue |
| 213 | 213 |
| 214 #endif // WEBKIT_GLUE_MEDIA_BUFFERED_DATA_SOURCE_H_ | 214 #endif // WEBKIT_GLUE_MEDIA_BUFFERED_DATA_SOURCE_H_ |
| OLD | NEW |