diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-26 19:53:21 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-26 19:53:21 +0000 |
commit | cb0fc545664a5dd3c2d61f83b433197b8db4fdb4 (patch) | |
tree | a10491df7d223e115fd2137c5f8397e2cc9065d0 /chrome | |
parent | 61c2fa1647b7e71f870c280a685082dee49c3d18 (diff) | |
download | chromium_src-cb0fc545664a5dd3c2d61f83b433197b8db4fdb4.zip chromium_src-cb0fc545664a5dd3c2d61f83b433197b8db4fdb4.tar.gz chromium_src-cb0fc545664a5dd3c2d61f83b433197b8db4fdb4.tar.bz2 |
Checking in stubbed out ChromeMediaPlayer filter implementations.
Review URL: http://codereview.chromium.org/18538
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8652 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/renderer/media/audio_renderer_impl.cc | 27 | ||||
-rw-r--r-- | chrome/renderer/media/audio_renderer_impl.h | 28 | ||||
-rw-r--r-- | chrome/renderer/media/data_source_impl.cc | 52 | ||||
-rw-r--r-- | chrome/renderer/media/data_source_impl.h | 35 | ||||
-rw-r--r-- | chrome/renderer/media/video_renderer_impl.cc | 22 | ||||
-rw-r--r-- | chrome/renderer/media/video_renderer_impl.h | 28 | ||||
-rw-r--r-- | chrome/renderer/renderer.scons | 9 | ||||
-rw-r--r-- | chrome/renderer/renderer.vcproj | 658 | ||||
-rw-r--r-- | chrome/renderer/webmediaplayer_delegate_impl.cc | 12 |
9 files changed, 556 insertions, 315 deletions
diff --git a/chrome/renderer/media/audio_renderer_impl.cc b/chrome/renderer/media/audio_renderer_impl.cc new file mode 100644 index 0000000..ab59833 --- /dev/null +++ b/chrome/renderer/media/audio_renderer_impl.cc @@ -0,0 +1,27 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// source code is governed by a BSD-style license that can be found in the +// LICENSE file. + +#include "chrome/renderer/media/audio_renderer_impl.h" + +AudioRendererImpl::AudioRendererImpl() { +} + +AudioRendererImpl::~AudioRendererImpl() { +} + +void AudioRendererImpl::Stop() { + // TODO(scherkus): implement Stop. + NOTIMPLEMENTED(); +} + +bool AudioRendererImpl::Initialize(media::AudioDecoder* decoder) { + // TODO(scherkus): implement Initialize. + NOTIMPLEMENTED(); + return false; +} + +void AudioRendererImpl::SetVolume(float volume) { + // TODO(scherkus): implement SetVolume. + NOTIMPLEMENTED(); +} diff --git a/chrome/renderer/media/audio_renderer_impl.h b/chrome/renderer/media/audio_renderer_impl.h new file mode 100644 index 0000000..94cb048 --- /dev/null +++ b/chrome/renderer/media/audio_renderer_impl.h @@ -0,0 +1,28 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// source code is governed by a BSD-style license that can be found in the +// LICENSE file. + +#ifndef CHROME_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ +#define CHROME_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ + +#include "media/base/filters.h" + +class AudioRendererImpl : public media::AudioRenderer { + public: + AudioRendererImpl(); + + // media::MediaFilter implementation. + virtual void Stop(); + + // media::AudioRenderer implementation. + virtual bool Initialize(media::AudioDecoder* decoder); + virtual void SetVolume(float volume); + + protected: + virtual ~AudioRendererImpl(); + + private: + DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); +}; + +#endif // CHROME_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ diff --git a/chrome/renderer/media/data_source_impl.cc b/chrome/renderer/media/data_source_impl.cc new file mode 100644 index 0000000..7193fcc --- /dev/null +++ b/chrome/renderer/media/data_source_impl.cc @@ -0,0 +1,52 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// source code is governed by a BSD-style license that can be found in the +// LICENSE file. + +#include "chrome/renderer/media/data_source_impl.h" + +DataSourceImpl::DataSourceImpl() { +} + +DataSourceImpl::~DataSourceImpl() { +} + +void DataSourceImpl::Stop() { + // TODO(scherkus): implement Stop. + NOTIMPLEMENTED(); +} + +bool DataSourceImpl::Initialize(const std::string& uri) { + // TODO(scherkus): implement Initialize. + NOTIMPLEMENTED(); + return false; +} + +const media::MediaFormat* DataSourceImpl::GetMediaFormat() { + // TODO(scherkus): implement GetMediaFormat. + NOTIMPLEMENTED(); + return NULL; +} + +size_t DataSourceImpl::Read(char* data, size_t size) { + // TODO(scherkus): implement Read. + NOTIMPLEMENTED(); + return media::DataSource::kReadError; +} + +bool DataSourceImpl::GetPosition(int64* position_out) { + // TODO(scherkus): implement GetPosition. + NOTIMPLEMENTED(); + return false; +} + +bool DataSourceImpl::SetPosition(int64 position) { + // TODO(scherkus): implement SetPosition. + NOTIMPLEMENTED(); + return false; +} + +bool DataSourceImpl::GetSize(int64* size_out) { + // TODO(scherkus): implement GetSize. + NOTIMPLEMENTED(); + return false; +} diff --git a/chrome/renderer/media/data_source_impl.h b/chrome/renderer/media/data_source_impl.h new file mode 100644 index 0000000..fe5bab8 --- /dev/null +++ b/chrome/renderer/media/data_source_impl.h @@ -0,0 +1,35 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// source code is governed by a BSD-style license that can be found in the +// LICENSE file. + +#ifndef CHROME_RENDERER_MEDIA_DATA_SOURCE_IMPL_H_ +#define CHROME_RENDERER_MEDIA_DATA_SOURCE_IMPL_H_ + +#include <string> + +#include "media/base/filters.h" +#include "media/base/media_format.h" + +class DataSourceImpl : public media::DataSource { + public: + DataSourceImpl(); + + // media::MediaFilter implementation. + virtual void Stop(); + + // media::DataSource implementation. + virtual bool Initialize(const std::string& uri); + virtual const media::MediaFormat* GetMediaFormat(); + virtual size_t Read(char* data, size_t size); + virtual bool GetPosition(int64* position_out); + virtual bool SetPosition(int64 position); + virtual bool GetSize(int64* size_out); + + protected: + virtual ~DataSourceImpl(); + + private: + DISALLOW_COPY_AND_ASSIGN(DataSourceImpl); +}; + +#endif // CHROME_RENDERER_MEDIA_DATA_SOURCE_IMPL_H_ diff --git a/chrome/renderer/media/video_renderer_impl.cc b/chrome/renderer/media/video_renderer_impl.cc new file mode 100644 index 0000000..77d9d90 --- /dev/null +++ b/chrome/renderer/media/video_renderer_impl.cc @@ -0,0 +1,22 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// source code is governed by a BSD-style license that can be found in the +// LICENSE file. + +#include "chrome/renderer/media/video_renderer_impl.h" + +VideoRendererImpl::VideoRendererImpl() { +} + +VideoRendererImpl::~VideoRendererImpl() { +} + +void VideoRendererImpl::Stop() { + // TODO(scherkus): implement Stop. + NOTIMPLEMENTED(); +} + +bool VideoRendererImpl::Initialize(media::VideoDecoder* decoder) { + // TODO(scherkus): implement Initialize. + NOTIMPLEMENTED(); + return false; +} diff --git a/chrome/renderer/media/video_renderer_impl.h b/chrome/renderer/media/video_renderer_impl.h new file mode 100644 index 0000000..9b58266 --- /dev/null +++ b/chrome/renderer/media/video_renderer_impl.h @@ -0,0 +1,28 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// source code is governed by a BSD-style license that can be found in the +// LICENSE file. + +#ifndef CHROME_RENDERER_MEDIA_VIDEO_RENDERER_H_ +#define CHROME_RENDERER_MEDIA_VIDEO_RENDERER_H_ + +#include "media/base/filters.h" + +class VideoRendererImpl : public media::VideoRenderer { + public: + VideoRendererImpl(); + + // media::MediaFilter implementation. + virtual void Stop(); + + // media::VideoRenderer implementation. + virtual bool Initialize(media::VideoDecoder* decoder); + + protected: + virtual ~VideoRendererImpl(); + + private: + DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); +}; + +#endif // CHROME_RENDERER_MEDIA_VIDEO_RENDERER_H_ + diff --git a/chrome/renderer/renderer.scons b/chrome/renderer/renderer.scons index ce3834a..9911a02 100644 --- a/chrome/renderer/renderer.scons +++ b/chrome/renderer/renderer.scons @@ -10,6 +10,7 @@ env.SConscript([ '$CHROME_DIR/third_party/wtl/using_wtl.scons', '$GRIT_DIR/build/using_generated_resources.scons', '$ICU38_DIR/using_icu38.scons', + '$MEDIA_DIR/using_media.scons', '$NPAPI_DIR/using_npapi.scons', '$SKIA_DIR/using_skia.scons', ], {'env':env}) @@ -35,6 +36,14 @@ input_files = ChromeFileList([ 'automation/dom_automation_controller.cc', 'automation/dom_automation_controller.h', ]), + MSVSFilter('media', [ + 'media/audio_renderer_impl.cc', + 'media/audio_renderer_impl.h', + 'media/data_source_impl.cc', + 'media/data_source_impl.h', + 'media/video_renderer_impl.cc', + 'media/video_renderer_impl.h', + ]), MSVSFilter('net', [ 'net/render_dns_master.cc', 'net/render_dns_master.h', diff --git a/chrome/renderer/renderer.vcproj b/chrome/renderer/renderer.vcproj index 449c1da..6ce9b2d 100644 --- a/chrome/renderer/renderer.vcproj +++ b/chrome/renderer/renderer.vcproj @@ -1,315 +1,343 @@ -<?xml version="1.0" encoding="Windows-1252"?> -<VisualStudioProject - ProjectType="Visual C++" - Version="8.00" - Name="renderer" - ProjectGUID="{9301A569-5D2B-4D11-9332-B1E30AEACB8D}" - RootNamespace="renderer" - Keyword="Win32Proj" - > - <Platforms> - <Platform - Name="Win32" - /> - </Platforms> - <ToolFiles> - </ToolFiles> - <Configurations> - <Configuration - Name="Debug|Win32" - ConfigurationType="4" - InheritedPropertySheets=".\renderer.vsprops;$(SolutionDir)..\build\debug.vsprops;..\tools\build\win\precompiled_wtl.vsprops" - > - <Tool - Name="VCPreBuildEventTool" - /> - <Tool - Name="VCCustomBuildTool" - /> - <Tool - Name="VCXMLDataGeneratorTool" - /> - <Tool - Name="VCWebServiceProxyGeneratorTool" - /> - <Tool - Name="VCMIDLTool" - /> - <Tool - Name="VCCLCompilerTool" - /> - <Tool - Name="VCManagedResourceCompilerTool" - /> - <Tool - Name="VCResourceCompilerTool" - /> - <Tool - Name="VCPreLinkEventTool" - /> - <Tool - Name="VCLibrarianTool" - /> - <Tool - Name="VCALinkTool" - /> - <Tool - Name="VCXDCMakeTool" - /> - <Tool - Name="VCBscMakeTool" - /> - <Tool - Name="VCFxCopTool" - /> - <Tool - Name="VCPostBuildEventTool" - /> - </Configuration> - <Configuration - Name="Release|Win32" - ConfigurationType="4" - InheritedPropertySheets=".\renderer.vsprops;$(SolutionDir)..\build\release.vsprops" - > - <Tool - Name="VCPreBuildEventTool" - /> - <Tool - Name="VCCustomBuildTool" - /> - <Tool - Name="VCXMLDataGeneratorTool" - /> - <Tool - Name="VCWebServiceProxyGeneratorTool" - /> - <Tool - Name="VCMIDLTool" - /> - <Tool - Name="VCCLCompilerTool" - /> - <Tool - Name="VCManagedResourceCompilerTool" - /> - <Tool - Name="VCResourceCompilerTool" - /> - <Tool - Name="VCPreLinkEventTool" - /> - <Tool - Name="VCLibrarianTool" - /> - <Tool - Name="VCALinkTool" - /> - <Tool - Name="VCXDCMakeTool" - /> - <Tool - Name="VCBscMakeTool" - /> - <Tool - Name="VCFxCopTool" - /> - <Tool - Name="VCPostBuildEventTool" - /> - </Configuration> - </Configurations> - <References> - </References> - <Files> - <Filter - Name="automation" - > - <File - RelativePath=".\automation\dom_automation_controller.cc" - > - </File> - <File - RelativePath=".\automation\dom_automation_controller.h" - > - </File> - </Filter> - <Filter - Name="net" - > - <File - RelativePath=".\net\render_dns_master.cc" - > - </File> - <File - RelativePath=".\net\render_dns_master.h" - > - </File> - <File - RelativePath=".\net\render_dns_queue.cc" - > - </File> - <File - RelativePath=".\net\render_dns_queue.h" - > - </File> - </Filter> - <File - RelativePath=".\about_handler.cc" - > - </File> - <File - RelativePath=".\about_handler.h" - > - </File> - <File - RelativePath=".\chrome_plugin_host.cc" - > - </File> - <File - RelativePath=".\chrome_plugin_host.h" - > - </File> - <File - RelativePath=".\debug_message_handler.cc" - > - </File> - <File - RelativePath=".\debug_message_handler.h" - > - </File> - <File - RelativePath=".\dom_ui_bindings.cc" - > - </File> - <File - RelativePath=".\dom_ui_bindings.h" - > - </File> - <File - RelativePath=".\external_host_bindings.cc" - > - </File> - <File - RelativePath=".\external_host_bindings.h" - > - </File> - <File - RelativePath=".\external_js_object.cc" - > - </File> - <File - RelativePath=".\external_js_object.h" - > - </File> - <File - RelativePath=".\localized_error.cc" - > - </File> - <File - RelativePath=".\localized_error.h" - > - </File> - <File - RelativePath=".\plugin_channel_host.cc" - > - </File> - <File - RelativePath=".\plugin_channel_host.h" - > - </File> - <File - RelativePath="..\tools\build\win\precompiled_wtl.cc" - > - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCLCompilerTool" - UsePrecompiledHeader="1" - /> - </FileConfiguration> - </File> - <File - RelativePath="..\tools\build\win\precompiled_wtl.h" - > - </File> - <File - RelativePath=".\render_process.cc" - > - </File> - <File - RelativePath=".\render_process.h" - > - </File> - <File - RelativePath=".\render_thread.cc" - > - </File> - <File - RelativePath=".\render_thread.h" - > - </File> - <File - RelativePath=".\render_view.cc" - > - </File> - <File - RelativePath=".\render_view.h" - > - </File> - <File - RelativePath=".\render_widget.cc" - > - </File> - <File - RelativePath=".\render_widget.h" - > - </File> - <File - RelativePath=".\renderer_glue.cc" - > - </File> - <File - RelativePath=".\renderer_main.cc" - > - </File> - <File - RelativePath=".\renderer_resources.h" - > - </File> - <File - RelativePath=".\user_script_slave.cc" - > - </File> - <File - RelativePath=".\user_script_slave.h" - > - </File> - <File - RelativePath=".\visitedlink_slave.cc" - > - </File> - <File - RelativePath=".\visitedlink_slave.h" - > - </File> - <File - RelativePath=".\webmediaplayer_delegate_impl.cc" - > - </File> - <File - RelativePath=".\webmediaplayer_delegate_impl.h" - > - </File> - <File - RelativePath=".\webplugin_delegate_proxy.cc" - > - </File> - <File - RelativePath=".\webplugin_delegate_proxy.h" - > - </File> - </Files> - <Globals> - </Globals> -</VisualStudioProject> +<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="8.00"
+ Name="renderer"
+ ProjectGUID="{9301A569-5D2B-4D11-9332-B1E30AEACB8D}"
+ RootNamespace="renderer"
+ Keyword="Win32Proj"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ ConfigurationType="4"
+ InheritedPropertySheets=".\renderer.vsprops;$(SolutionDir)..\build\debug.vsprops;..\tools\build\win\precompiled_wtl.vsprops"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ ConfigurationType="4"
+ InheritedPropertySheets=".\renderer.vsprops;$(SolutionDir)..\build\release.vsprops"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="automation"
+ >
+ <File
+ RelativePath=".\automation\dom_automation_controller.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\automation\dom_automation_controller.h"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="media"
+ >
+ <File
+ RelativePath=".\media\audio_renderer_impl.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\media\audio_renderer_impl.h"
+ >
+ </File>
+ <File
+ RelativePath=".\media\data_source_impl.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\media\data_source_impl.h"
+ >
+ </File>
+ <File
+ RelativePath=".\media\video_renderer_impl.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\media\video_renderer_impl.h"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="net"
+ >
+ <File
+ RelativePath=".\net\render_dns_master.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\net\render_dns_master.h"
+ >
+ </File>
+ <File
+ RelativePath=".\net\render_dns_queue.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\net\render_dns_queue.h"
+ >
+ </File>
+ </Filter>
+ <File
+ RelativePath=".\about_handler.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\about_handler.h"
+ >
+ </File>
+ <File
+ RelativePath=".\chrome_plugin_host.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\chrome_plugin_host.h"
+ >
+ </File>
+ <File
+ RelativePath=".\debug_message_handler.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\debug_message_handler.h"
+ >
+ </File>
+ <File
+ RelativePath=".\dom_ui_bindings.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\dom_ui_bindings.h"
+ >
+ </File>
+ <File
+ RelativePath=".\external_host_bindings.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\external_host_bindings.h"
+ >
+ </File>
+ <File
+ RelativePath=".\external_js_object.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\external_js_object.h"
+ >
+ </File>
+ <File
+ RelativePath=".\localized_error.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\localized_error.h"
+ >
+ </File>
+ <File
+ RelativePath=".\plugin_channel_host.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\plugin_channel_host.h"
+ >
+ </File>
+ <File
+ RelativePath="..\tools\build\win\precompiled_wtl.cc"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ UsePrecompiledHeader="1"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\tools\build\win\precompiled_wtl.h"
+ >
+ </File>
+ <File
+ RelativePath=".\render_process.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\render_process.h"
+ >
+ </File>
+ <File
+ RelativePath=".\render_thread.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\render_thread.h"
+ >
+ </File>
+ <File
+ RelativePath=".\render_view.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\render_view.h"
+ >
+ </File>
+ <File
+ RelativePath=".\render_widget.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\render_widget.h"
+ >
+ </File>
+ <File
+ RelativePath=".\renderer_glue.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\renderer_main.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\renderer_resources.h"
+ >
+ </File>
+ <File
+ RelativePath=".\user_script_slave.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\user_script_slave.h"
+ >
+ </File>
+ <File
+ RelativePath=".\visitedlink_slave.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\visitedlink_slave.h"
+ >
+ </File>
+ <File
+ RelativePath=".\webmediaplayer_delegate_impl.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\webmediaplayer_delegate_impl.h"
+ >
+ </File>
+ <File
+ RelativePath=".\webplugin_delegate_proxy.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\webplugin_delegate_proxy.h"
+ >
+ </File>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/chrome/renderer/webmediaplayer_delegate_impl.cc b/chrome/renderer/webmediaplayer_delegate_impl.cc index f0aafd1..516a9c9 100644 --- a/chrome/renderer/webmediaplayer_delegate_impl.cc +++ b/chrome/renderer/webmediaplayer_delegate_impl.cc @@ -2,6 +2,9 @@ // source code is governed by a BSD-style license that can be found in the // LICENSE file. +#include "chrome/renderer/media/audio_renderer_impl.h" +#include "chrome/renderer/media/data_source_impl.h" +#include "chrome/renderer/media/video_renderer_impl.h" #include "chrome/renderer/webmediaplayer_delegate_impl.h" WebMediaPlayerDelegateImpl::WebMediaPlayerDelegateImpl() @@ -22,6 +25,15 @@ WebMediaPlayerDelegateImpl::WebMediaPlayerDelegateImpl() web_media_player_(NULL), width_(0) { // TODO(hclam): initialize the media player here + + // TODO(scherkus): remove these when actually in use -- right now I declare + // these to force compiler/linker errors to reveal themselves. + scoped_refptr<AudioRendererImpl> audio_renderer; + audio_renderer = new AudioRendererImpl(); + scoped_refptr<DataSourceImpl> data_source; + data_source = new DataSourceImpl(); + scoped_refptr<VideoRendererImpl> video_renderer; + video_renderer = new VideoRendererImpl(); } WebMediaPlayerDelegateImpl::~WebMediaPlayerDelegateImpl() { |