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

Side by Side Diff: chrome/renderer/webmediaplayer_impl.h

Issue 259047: Move classes depending on Skia out of base/gfx and into app/gfx. Rename... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
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 27 matching lines...) Expand all
38 // the main thread, so we need this class to listen to destruction event of the 38 // the main thread, so we need this class to listen to destruction event of the
39 // main thread and cleanup the media threads when the even is received. Also 39 // main thread and cleanup the media threads when the even is received. Also
40 // at destruction of this class we will need to unhook it from destruction event 40 // at destruction of this class we will need to unhook it from destruction event
41 // list of the main thread. 41 // list of the main thread.
42 42
43 #ifndef CHROME_RENDERER_WEBMEDIAPLAYER_IMPL_H_ 43 #ifndef CHROME_RENDERER_WEBMEDIAPLAYER_IMPL_H_
44 #define CHROME_RENDERER_WEBMEDIAPLAYER_IMPL_H_ 44 #define CHROME_RENDERER_WEBMEDIAPLAYER_IMPL_H_
45 45
46 #include <vector> 46 #include <vector>
47 47
48 #include "base/gfx/platform_canvas.h"
49 #include "base/lock.h" 48 #include "base/lock.h"
50 #include "base/message_loop.h" 49 #include "base/message_loop.h"
51 #include "media/base/filters.h" 50 #include "media/base/filters.h"
52 #include "media/base/pipeline_impl.h" 51 #include "media/base/pipeline_impl.h"
52 #include "skia/ext/platform_canvas.h"
53 #include "webkit/api/public/WebMediaPlayer.h" 53 #include "webkit/api/public/WebMediaPlayer.h"
54 #include "webkit/api/public/WebMediaPlayerClient.h" 54 #include "webkit/api/public/WebMediaPlayerClient.h"
55 55
56 class AudioRendererImpl; 56 class AudioRendererImpl;
57 class DataSourceImpl; 57 class DataSourceImpl;
58 class GURL; 58 class GURL;
59 class RenderView; 59 class RenderView;
60 class VideoRendererImpl; 60 class VideoRendererImpl;
61 61
62 namespace media { 62 namespace media {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // |main_loop_|. |tasks_| can be access from main thread or the media threads 193 // |main_loop_|. |tasks_| can be access from main thread or the media threads
194 // we need a lock for protecting it. 194 // we need a lock for protecting it.
195 Lock task_lock_; 195 Lock task_lock_;
196 typedef std::vector<CancelableTask*> CancelableTaskList; 196 typedef std::vector<CancelableTask*> CancelableTaskList;
197 CancelableTaskList tasks_; 197 CancelableTaskList tasks_;
198 198
199 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 199 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
200 }; 200 };
201 201
202 #endif // CHROME_RENDERER_WEBMEDIAPLAYER_IMPL_H_ 202 #endif // CHROME_RENDERER_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_main_platform_delegate_win.cc ('k') | chrome/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698