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

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

Issue 21272: janitorial: browser_render_process_host header/lint cleanup. (try 2) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | « chrome/renderer/user_script_slave.cc ('k') | chrome/renderer/webplugin_delegate_proxy.h » ('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 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 // 4 //
5 // Delegate calls from WebCore::MediaPlayerPrivate to google's video player. 5 // Delegate calls from WebCore::MediaPlayerPrivate to google'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 26 matching lines...) Expand all
37 // at destruction of this class we will need to unhook it from destruction event 37 // at destruction of this class we will need to unhook it from destruction event
38 // list of the main thread. 38 // list of the main thread.
39 39
40 #ifndef CHROME_RENDERER_WEBMEDIAPLAYER_DELEGATE_IMPL_H_ 40 #ifndef CHROME_RENDERER_WEBMEDIAPLAYER_DELEGATE_IMPL_H_
41 #define CHROME_RENDERER_WEBMEDIAPLAYER_DELEGATE_IMPL_H_ 41 #define CHROME_RENDERER_WEBMEDIAPLAYER_DELEGATE_IMPL_H_
42 42
43 #include <vector> 43 #include <vector>
44 44
45 #include "base/lock.h" 45 #include "base/lock.h"
46 #include "base/message_loop.h" 46 #include "base/message_loop.h"
47 #include "media/base/factory.h"
48 #include "media/base/filters.h" 47 #include "media/base/filters.h"
49 #include "media/base/pipeline_impl.h" 48 #include "media/base/pipeline_impl.h"
50 #include "webkit/glue/webmediaplayer_delegate.h" 49 #include "webkit/glue/webmediaplayer_delegate.h"
51 50
52 class RenderView; 51 class RenderView;
53 class VideoRendererImpl; 52 class VideoRendererImpl;
54 53
54 namespace media {
55 class FilterFactoryCollection;
56 }
57
55 // This typedef is used for WebMediaPlayerDelegateImpl::PostTask() and 58 // This typedef is used for WebMediaPlayerDelegateImpl::PostTask() and
56 // NotifyWebMediaPlayerTask in the source file. 59 // NotifyWebMediaPlayerTask in the source file.
57 typedef void (webkit_glue::WebMediaPlayer::*WebMediaPlayerMethod)(); 60 typedef void (webkit_glue::WebMediaPlayer::*WebMediaPlayerMethod)();
58 61
59 class WebMediaPlayerDelegateImpl : public webkit_glue::WebMediaPlayerDelegate, 62 class WebMediaPlayerDelegateImpl : public webkit_glue::WebMediaPlayerDelegate,
60 public MessageLoop::DestructionObserver { 63 public MessageLoop::DestructionObserver {
61 public: 64 public:
62 explicit WebMediaPlayerDelegateImpl(RenderView* render_view); 65 explicit WebMediaPlayerDelegateImpl(RenderView* render_view);
63 virtual ~WebMediaPlayerDelegateImpl(); 66 virtual ~WebMediaPlayerDelegateImpl();
64 67
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // |main_loop_|. |tasks_| can be access from main thread or the media threads 185 // |main_loop_|. |tasks_| can be access from main thread or the media threads
183 // we need a lock for protecting it. 186 // we need a lock for protecting it.
184 Lock task_lock_; 187 Lock task_lock_;
185 typedef std::vector<CancelableTask*> CancelableTaskList; 188 typedef std::vector<CancelableTask*> CancelableTaskList;
186 CancelableTaskList tasks_; 189 CancelableTaskList tasks_;
187 190
188 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerDelegateImpl); 191 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerDelegateImpl);
189 }; 192 };
190 193
191 #endif // ifndef CHROME_RENDERER_WEBMEDIAPLAYER_DELEGATE_IMPL_H_ 194 #endif // ifndef CHROME_RENDERER_WEBMEDIAPLAYER_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/renderer/user_script_slave.cc ('k') | chrome/renderer/webplugin_delegate_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698