| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "webkit/support/webkit_support.h" | 5 #include "webkit/support/webkit_support.h" |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/base64.h" | 8 #include "base/base64.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/debugger.h" | 10 #include "base/debug/debugger.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
| 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" |
| 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" |
| 40 #if defined(TOOLKIT_USES_GTK) | 40 #if defined(TOOLKIT_USES_GTK) |
| 41 #include "ui/base/keycodes/keyboard_code_conversion_gtk.h" | 41 #include "ui/base/keycodes/keyboard_code_conversion_gtk.h" |
| 42 #endif | 42 #endif |
| 43 #include "ui/gfx/gl/gl_context.h" | 43 #include "ui/gfx/gl/gl_context.h" |
| 44 #include "ui/gfx/gl/gl_implementation.h" | 44 #include "ui/gfx/gl/gl_implementation.h" |
| 45 #include "ui/gfx/gl/gl_surface.h" | 45 #include "ui/gfx/gl/gl_surface.h" |
| 46 #include "webkit/appcache/web_application_cache_host_impl.h" | 46 #include "webkit/appcache/web_application_cache_host_impl.h" |
| 47 #include "webkit/glue/media/video_renderer_impl.h" | |
| 48 #include "webkit/glue/user_agent.h" | 47 #include "webkit/glue/user_agent.h" |
| 49 #include "webkit/glue/webkit_constants.h" | 48 #include "webkit/glue/webkit_constants.h" |
| 50 #include "webkit/glue/webkit_glue.h" | 49 #include "webkit/glue/webkit_glue.h" |
| 51 #include "webkit/glue/webkitplatformsupport_impl.h" | 50 #include "webkit/glue/webkitplatformsupport_impl.h" |
| 52 #include "webkit/glue/webmediaplayer_impl.h" | 51 #include "webkit/media/video_renderer_impl.h" |
| 52 #include "webkit/media/webmediaplayer_impl.h" |
| 53 #include "webkit/plugins/npapi/plugin_list.h" | 53 #include "webkit/plugins/npapi/plugin_list.h" |
| 54 #include "webkit/plugins/npapi/webplugin_impl.h" | 54 #include "webkit/plugins/npapi/webplugin_impl.h" |
| 55 #include "webkit/plugins/npapi/webplugin_page_delegate.h" | 55 #include "webkit/plugins/npapi/webplugin_page_delegate.h" |
| 56 #include "webkit/plugins/webplugininfo.h" | 56 #include "webkit/plugins/webplugininfo.h" |
| 57 #include "webkit/support/platform_support.h" | 57 #include "webkit/support/platform_support.h" |
| 58 #include "webkit/support/simple_database_system.h" | 58 #include "webkit/support/simple_database_system.h" |
| 59 #include "webkit/support/test_webkit_platform_support.h" | 59 #include "webkit/support/test_webkit_platform_support.h" |
| 60 #include "webkit/support/test_webplugin_page_delegate.h" | 60 #include "webkit/support/test_webplugin_page_delegate.h" |
| 61 #include "webkit/tools/test_shell/simple_file_system.h" | 61 #include "webkit/tools/test_shell/simple_file_system.h" |
| 62 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" | 62 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 } | 311 } |
| 312 | 312 |
| 313 WebKit::WebMediaPlayer* CreateMediaPlayer(WebFrame* frame, | 313 WebKit::WebMediaPlayer* CreateMediaPlayer(WebFrame* frame, |
| 314 WebMediaPlayerClient* client) { | 314 WebMediaPlayerClient* client) { |
| 315 scoped_ptr<media::MessageLoopFactory> message_loop_factory( | 315 scoped_ptr<media::MessageLoopFactory> message_loop_factory( |
| 316 new media::MessageLoopFactoryImpl()); | 316 new media::MessageLoopFactoryImpl()); |
| 317 | 317 |
| 318 scoped_ptr<media::FilterCollection> collection( | 318 scoped_ptr<media::FilterCollection> collection( |
| 319 new media::FilterCollection()); | 319 new media::FilterCollection()); |
| 320 | 320 |
| 321 scoped_refptr<webkit_glue::VideoRendererImpl> video_renderer( | 321 scoped_refptr<webkit_media::VideoRendererImpl> video_renderer( |
| 322 new webkit_glue::VideoRendererImpl(false)); | 322 new webkit_media::VideoRendererImpl(false)); |
| 323 collection->AddVideoRenderer(video_renderer); | 323 collection->AddVideoRenderer(video_renderer); |
| 324 | 324 |
| 325 scoped_ptr<webkit_glue::WebMediaPlayerImpl> result( | 325 scoped_ptr<webkit_media::WebMediaPlayerImpl> result( |
| 326 new webkit_glue::WebMediaPlayerImpl( | 326 new webkit_media::WebMediaPlayerImpl( |
| 327 client, | 327 client, |
| 328 base::WeakPtr<webkit_glue::WebMediaPlayerDelegate>(), | 328 base::WeakPtr<webkit_media::WebMediaPlayerDelegate>(), |
| 329 collection.release(), | 329 collection.release(), |
| 330 message_loop_factory.release(), | 330 message_loop_factory.release(), |
| 331 NULL, | 331 NULL, |
| 332 new media::MediaLog())); | 332 new media::MediaLog())); |
| 333 if (!result->Initialize(frame, false, video_renderer)) { | 333 if (!result->Initialize(frame, false, video_renderer)) { |
| 334 return NULL; | 334 return NULL; |
| 335 } | 335 } |
| 336 return result.release(); | 336 return result.release(); |
| 337 } | 337 } |
| 338 | 338 |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 double GetForegroundTabTimerInterval() { | 644 double GetForegroundTabTimerInterval() { |
| 645 return webkit_glue::kForegroundTabTimerInterval; | 645 return webkit_glue::kForegroundTabTimerInterval; |
| 646 } | 646 } |
| 647 | 647 |
| 648 // Logging | 648 // Logging |
| 649 void EnableWebCoreLogChannels(const std::string& channels) { | 649 void EnableWebCoreLogChannels(const std::string& channels) { |
| 650 webkit_glue::EnableWebCoreLogChannels(channels); | 650 webkit_glue::EnableWebCoreLogChannels(channels); |
| 651 } | 651 } |
| 652 | 652 |
| 653 } // namespace webkit_support | 653 } // namespace webkit_support |
| OLD | NEW |