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

Side by Side Diff: webkit/glue/media/buffered_data_source.h

Issue 6686061: PipelineError is dead. Long live PipelineStatus! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: responses to 2nd CR Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « media/tools/player_x11/player_x11.cc ('k') | webkit/glue/media/buffered_data_source.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « media/tools/player_x11/player_x11.cc ('k') | webkit/glue/media/buffered_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698