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

Side by Side Diff: webkit/media/webmediaplayer_proxy.h

Issue 10123005: Revert 132965 - this change seems to break media_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | « webkit/media/webmediaplayer_impl.cc ('k') | webkit/media/webmediaplayer_proxy.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEBMEDIAPLAYER_PROXY_H_ 5 #ifndef WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_
6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ 6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/synchronization/lock.h" 11 #include "base/synchronization/lock.h"
12 #include "media/base/pipeline.h" 12 #include "media/base/pipeline.h"
13 #include "media/filters/chunk_demuxer.h"
14 #include "media/filters/chunk_demuxer_client.h" 13 #include "media/filters/chunk_demuxer_client.h"
15 #include "media/filters/ffmpeg_video_decoder.h" 14 #include "media/filters/ffmpeg_video_decoder.h"
16 #include "webkit/media/buffered_data_source.h" 15 #include "webkit/media/buffered_data_source.h"
17 #include "webkit/media/skcanvas_video_renderer.h" 16 #include "webkit/media/skcanvas_video_renderer.h"
18 17
19 class SkCanvas; 18 class SkCanvas;
20 19
21 namespace base { 20 namespace base {
22 class MessageLoopProxy; 21 class MessageLoopProxy;
23 } 22 }
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void PipelineEndedCallback(media::PipelineStatus status); 81 void PipelineEndedCallback(media::PipelineStatus status);
83 void PipelineErrorCallback(media::PipelineStatus error); 82 void PipelineErrorCallback(media::PipelineStatus error);
84 void NetworkEventCallback(media::NetworkEvent type); 83 void NetworkEventCallback(media::NetworkEvent type);
85 84
86 // ChunkDemuxerClient implementation. 85 // ChunkDemuxerClient implementation.
87 virtual void DemuxerOpened(media::ChunkDemuxer* demuxer) OVERRIDE; 86 virtual void DemuxerOpened(media::ChunkDemuxer* demuxer) OVERRIDE;
88 virtual void DemuxerClosed() OVERRIDE; 87 virtual void DemuxerClosed() OVERRIDE;
89 88
90 // Methods for Demuxer communication. 89 // Methods for Demuxer communication.
91 void DemuxerFlush(); 90 void DemuxerFlush();
92 media::ChunkDemuxer::Status DemuxerAddId(const std::string& id, 91 bool DemuxerAppend(const uint8* data, size_t length);
93 const std::string& type);
94 bool DemuxerRemoveId(const std::string& id);
95 bool DemuxerAppend(const std::string& id, const uint8* data, size_t length);
96 void DemuxerEndOfStream(media::PipelineStatus status); 92 void DemuxerEndOfStream(media::PipelineStatus status);
97 void DemuxerShutdown(); 93 void DemuxerShutdown();
98 94
99 void DemuxerOpenedTask(const scoped_refptr<media::ChunkDemuxer>& demuxer); 95 void DemuxerOpenedTask(const scoped_refptr<media::ChunkDemuxer>& demuxer);
100 void DemuxerClosedTask(); 96 void DemuxerClosedTask();
101 97
102 private: 98 private:
103 friend class base::RefCountedThreadSafe<WebMediaPlayerProxy>; 99 friend class base::RefCountedThreadSafe<WebMediaPlayerProxy>;
104 virtual ~WebMediaPlayerProxy(); 100 virtual ~WebMediaPlayerProxy();
105 101
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 int outstanding_repaints_; 134 int outstanding_repaints_;
139 135
140 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_; 136 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_;
141 137
142 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerProxy); 138 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerProxy);
143 }; 139 };
144 140
145 } // namespace webkit_media 141 } // namespace webkit_media
146 142
147 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ 143 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_
OLDNEW
« no previous file with comments | « webkit/media/webmediaplayer_impl.cc ('k') | webkit/media/webmediaplayer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698