OLD | NEW |
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 | 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 #include "chrome/renderer/webmediaplayer_impl.h" | 5 #include "chrome/renderer/webmediaplayer_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/common/chrome_switches.h" | 8 #include "chrome/common/chrome_switches.h" |
9 #include "chrome/renderer/media/audio_renderer_impl.h" | 9 #include "chrome/renderer/media/audio_renderer_impl.h" |
10 #include "chrome/renderer/media/data_source_impl.h" | |
11 #include "chrome/renderer/media/buffered_data_source.h" | 10 #include "chrome/renderer/media/buffered_data_source.h" |
12 #include "chrome/renderer/media/simple_data_source.h" | 11 #include "chrome/renderer/media/simple_data_source.h" |
13 #include "chrome/renderer/media/video_renderer_impl.h" | 12 #include "chrome/renderer/media/video_renderer_impl.h" |
14 #include "chrome/renderer/render_view.h" | 13 #include "chrome/renderer/render_view.h" |
15 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
16 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
17 // FFmpeg is not ready for Linux and Mac yet. | 16 // FFmpeg is not ready for Linux and Mac yet. |
18 #include "media/filters/ffmpeg_audio_decoder.h" | 17 #include "media/filters/ffmpeg_audio_decoder.h" |
19 #include "media/filters/ffmpeg_demuxer.h" | 18 #include "media/filters/ffmpeg_demuxer.h" |
20 #include "media/filters/ffmpeg_video_decoder.h" | 19 #include "media/filters/ffmpeg_video_decoder.h" |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 if (!tasks_[index]) { | 353 if (!tasks_[index]) { |
355 CancelableTask* task = new NotifyWebMediaPlayerTask(this, method); | 354 CancelableTask* task = new NotifyWebMediaPlayerTask(this, method); |
356 tasks_[index] = task; | 355 tasks_[index] = task; |
357 main_loop_->PostTask(FROM_HERE, task); | 356 main_loop_->PostTask(FROM_HERE, task); |
358 } | 357 } |
359 } | 358 } |
360 | 359 |
361 void WebMediaPlayerImpl::PostRepaintTask() { | 360 void WebMediaPlayerImpl::PostRepaintTask() { |
362 PostTask(kRepaintTaskIndex, &WebKit::WebMediaPlayerClient::repaint); | 361 PostTask(kRepaintTaskIndex, &WebKit::WebMediaPlayerClient::repaint); |
363 } | 362 } |
OLD | NEW |