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

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

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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/glue/webkitclient_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // During tear down of the whole browser or a tab, the DOM tree may not be 46 // During tear down of the whole browser or a tab, the DOM tree may not be
47 // destructed nicely, and there will be some dangling media threads trying to 47 // destructed nicely, and there will be some dangling media threads trying to
48 // the main thread, so we need this class to listen to destruction event of the 48 // the main thread, so we need this class to listen to destruction event of the
49 // main thread and cleanup the media threads when the even is received. Also 49 // main thread and cleanup the media threads when the even is received. Also
50 // at destruction of this class we will need to unhook it from destruction event 50 // at destruction of this class we will need to unhook it from destruction event
51 // list of the main thread. 51 // list of the main thread.
52 52
53 #ifndef WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ 53 #ifndef WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_
54 #define WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ 54 #define WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_
55 55
56 #include "base/lock.h"
57 #include "base/message_loop.h" 56 #include "base/message_loop.h"
58 #include "base/ref_counted.h" 57 #include "base/ref_counted.h"
59 #include "base/scoped_ptr.h" 58 #include "base/scoped_ptr.h"
60 #include "base/threading/thread.h" 59 #include "base/threading/thread.h"
60 #include "base/synchronization/lock.h"
61 #include "base/synchronization/waitable_event.h" 61 #include "base/synchronization/waitable_event.h"
62 #include "gfx/rect.h" 62 #include "gfx/rect.h"
63 #include "gfx/size.h" 63 #include "gfx/size.h"
64 #include "media/base/filters.h" 64 #include "media/base/filters.h"
65 #include "media/base/pipeline.h" 65 #include "media/base/pipeline.h"
66 #include "skia/ext/platform_canvas.h" 66 #include "skia/ext/platform_canvas.h"
67 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayer.h" 67 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayer.h"
68 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerClient.h" 68 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerClient.h"
69 69
70 class GURL; 70 class GURL;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 // Notify |webmediaplayer_| that there's a network event. 142 // Notify |webmediaplayer_| that there's a network event.
143 void NetworkEventTask(); 143 void NetworkEventTask();
144 144
145 // The render message loop where WebKit lives. 145 // The render message loop where WebKit lives.
146 MessageLoop* render_loop_; 146 MessageLoop* render_loop_;
147 WebMediaPlayerImpl* webmediaplayer_; 147 WebMediaPlayerImpl* webmediaplayer_;
148 scoped_refptr<WebDataSource> data_source_; 148 scoped_refptr<WebDataSource> data_source_;
149 scoped_refptr<WebVideoRenderer> video_renderer_; 149 scoped_refptr<WebVideoRenderer> video_renderer_;
150 150
151 Lock lock_; 151 base::Lock lock_;
152 int outstanding_repaints_; 152 int outstanding_repaints_;
153 }; 153 };
154 154
155 // Construct a WebMediaPlayerImpl with reference to the client, and media 155 // Construct a WebMediaPlayerImpl with reference to the client, and media
156 // filter collection. By providing the filter collection the implementor can 156 // filter collection. By providing the filter collection the implementor can
157 // provide more specific media filters that does resource loading and 157 // provide more specific media filters that does resource loading and
158 // rendering. |collection| should contain filter factories for: 158 // rendering. |collection| should contain filter factories for:
159 // 1. Data source 159 // 1. Data source
160 // 2. Audio renderer 160 // 2. Audio renderer
161 // 3. Video renderer (optional) 161 // 3. Video renderer (optional)
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 #if WEBKIT_USING_CG 317 #if WEBKIT_USING_CG
318 scoped_ptr<skia::PlatformCanvas> skia_canvas_; 318 scoped_ptr<skia::PlatformCanvas> skia_canvas_;
319 #endif 319 #endif
320 320
321 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 321 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
322 }; 322 };
323 323
324 } // namespace webkit_glue 324 } // namespace webkit_glue
325 325
326 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ 326 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/webkitclient_impl.cc ('k') | webkit/glue/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698