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

Side by Side Diff: webkit/glue/webmediaplayer_impl.h

Issue 8395053: Adding flag for turning on the Media Source API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits Created 9 years, 1 month 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 | « content/renderer/render_thread_impl.cc ('k') | webkit/glue/webmediaplayer_impl.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 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player.
6 // It contains PipelineImpl which is the actual media player pipeline, it glues 6 // It contains PipelineImpl which is the actual media player pipeline, it glues
7 // the media player pipeline, data source, audio renderer and renderer. 7 // the media player pipeline, data source, audio renderer and renderer.
8 // PipelineImpl would creates multiple threads and access some public methods 8 // PipelineImpl would creates multiple threads and access some public methods
9 // of this class, so we need to be extra careful about concurrent access of 9 // of this class, so we need to be extra careful about concurrent access of
10 // methods and members. 10 // methods and members.
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 virtual float mediaTimeForTimeValue(float timeValue) const; 172 virtual float mediaTimeForTimeValue(float timeValue) const;
173 173
174 virtual unsigned decodedFrameCount() const; 174 virtual unsigned decodedFrameCount() const;
175 virtual unsigned droppedFrameCount() const; 175 virtual unsigned droppedFrameCount() const;
176 virtual unsigned audioDecodedByteCount() const; 176 virtual unsigned audioDecodedByteCount() const;
177 virtual unsigned videoDecodedByteCount() const; 177 virtual unsigned videoDecodedByteCount() const;
178 178
179 virtual WebKit::WebVideoFrame* getCurrentFrame(); 179 virtual WebKit::WebVideoFrame* getCurrentFrame();
180 virtual void putCurrentFrame(WebKit::WebVideoFrame* web_video_frame); 180 virtual void putCurrentFrame(WebKit::WebVideoFrame* web_video_frame);
181 181
182 // TODO(acolwell): Uncomment once WebKit changes are checked in. 182 virtual bool sourceAppend(const unsigned char* data, unsigned length);
183 // https://bugs.webkit.org/show_bug.cgi?id=64731 183 virtual void sourceEndOfStream(EndOfStreamStatus status);
184 //virtual bool sourceAppend(const unsigned char* data, unsigned length);
185 //virtual void sourceEndOfStream(EndOfStreamStatus status);
186 184
187 // As we are closing the tab or even the browser, |main_loop_| is destroyed 185 // As we are closing the tab or even the browser, |main_loop_| is destroyed
188 // even before this object gets destructed, so we need to know when 186 // even before this object gets destructed, so we need to know when
189 // |main_loop_| is being destroyed and we can stop posting repaint task 187 // |main_loop_| is being destroyed and we can stop posting repaint task
190 // to it. 188 // to it.
191 virtual void WillDestroyCurrentMessageLoop(); 189 virtual void WillDestroyCurrentMessageLoop();
192 190
193 void Repaint(); 191 void Repaint();
194 192
195 void OnPipelineInitialize(media::PipelineStatus status); 193 void OnPipelineInitialize(media::PipelineStatus status);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 scoped_refptr<media::MediaLog> media_log_; 268 scoped_refptr<media::MediaLog> media_log_;
271 269
272 bool incremented_externally_allocated_memory_; 270 bool incremented_externally_allocated_memory_;
273 271
274 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 272 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
275 }; 273 };
276 274
277 } // namespace webkit_glue 275 } // namespace webkit_glue
278 276
279 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ 277 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | webkit/glue/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698