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

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

Issue 155713: Added reference counting to the Pipeline interface. (Closed)
Patch Set: Uploaded too much Created 11 years, 5 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
« no previous file with comments | « media/player/movie.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) 2008-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be found 2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file. 3 // 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 WebKit::WebMediaPlayer::ReadyState ready_state_; 230 WebKit::WebMediaPlayer::ReadyState ready_state_;
231 231
232 // Message loops for posting tasks between Chrome's main thread. Also used 232 // Message loops for posting tasks between Chrome's main thread. Also used
233 // for DCHECKs so methods calls won't execute in the wrong thread. 233 // for DCHECKs so methods calls won't execute in the wrong thread.
234 MessageLoop* main_loop_; 234 MessageLoop* main_loop_;
235 235
236 // A collection of factories for creating filters. 236 // A collection of factories for creating filters.
237 scoped_refptr<media::FilterFactoryCollection> filter_factory_; 237 scoped_refptr<media::FilterFactoryCollection> filter_factory_;
238 238
239 // The actual pipeline and the thread it runs on. 239 // The actual pipeline and the thread it runs on.
240 scoped_ptr<media::PipelineImpl> pipeline_; 240 scoped_refptr<media::PipelineImpl> pipeline_;
241 base::Thread pipeline_thread_; 241 base::Thread pipeline_thread_;
242 242
243 // Playback state. 243 // Playback state.
244 // 244 //
245 // TODO(scherkus): we have these because Pipeline favours the simplicity of a 245 // TODO(scherkus): we have these because Pipeline favours the simplicity of a
246 // single "playback rate" over worrying about paused/stopped etc... It forces 246 // single "playback rate" over worrying about paused/stopped etc... It forces
247 // all clients to manage the pause+playback rate externally, but is that 247 // all clients to manage the pause+playback rate externally, but is that
248 // really a bad thing? 248 // really a bad thing?
249 bool paused_; 249 bool paused_;
250 float playback_rate_; 250 float playback_rate_;
251 251
252 WebKit::WebMediaPlayerClient* client_; 252 WebKit::WebMediaPlayerClient* client_;
253 253
254 scoped_refptr<Proxy> proxy_; 254 scoped_refptr<Proxy> proxy_;
255 255
256 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 256 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
257 }; 257 };
258 258
259 } // namespace webkit_glue 259 } // namespace webkit_glue
260 260
261 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ 261 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « media/player/movie.cc ('k') | webkit/glue/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698