| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "ipc/ipc_message.h" | 12 #include "ipc/ipc_message.h" |
| 13 #include "content/public/common/content_client.h" | 13 #include "content/public/common/content_client.h" |
| 14 #include "content/public/common/page_transition_types.h" | 14 #include "content/public/common/page_transition_types.h" |
| 15 #include "media/filters/gpu_video_decoder.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
| 18 #include "v8/include/v8.h" | 19 #include "v8/include/v8.h" |
| 19 | 20 |
| 20 class FilePath; | 21 class FilePath; |
| 21 class GURL; | 22 class GURL; |
| 22 class SkBitmap; | 23 class SkBitmap; |
| 23 | 24 |
| 24 namespace WebKit { | 25 namespace WebKit { |
| 25 class WebAudioSourceProvider; | 26 class WebAudioSourceProvider; |
| 26 class WebFrame; | 27 class WebFrame; |
| 27 class WebMediaPlayerClient; | 28 class WebMediaPlayerClient; |
| 28 class WebPlugin; | 29 class WebPlugin; |
| 29 class WebURLRequest; | 30 class WebURLRequest; |
| 30 struct WebPluginParams; | 31 struct WebPluginParams; |
| 31 struct WebURLError; | 32 struct WebURLError; |
| 32 } | 33 } |
| 33 | 34 |
| 34 namespace webkit { | 35 namespace webkit { |
| 35 namespace ppapi { | 36 namespace ppapi { |
| 36 class PpapiInterfaceFactoryManager; | 37 class PpapiInterfaceFactoryManager; |
| 37 } | 38 } |
| 38 struct WebPluginInfo; | 39 struct WebPluginInfo; |
| 39 } | 40 } |
| 40 | 41 |
| 41 namespace media { | 42 namespace media { |
| 42 class AudioRendererSink; | 43 class AudioRendererSink; |
| 43 class FilterCollection; | |
| 44 class MediaLog; | 44 class MediaLog; |
| 45 class MessageLoopFactory; | |
| 46 } | 45 } |
| 47 | 46 |
| 48 namespace webkit_media { | 47 namespace webkit_media { |
| 49 class MediaStreamClient; | 48 class MediaStreamClient; |
| 50 class WebMediaPlayerDelegate; | 49 class WebMediaPlayerDelegate; |
| 51 class WebMediaPlayerImpl; | 50 class WebMediaPlayerImpl; |
| 52 } | 51 } |
| 53 | 52 |
| 54 namespace content { | 53 namespace content { |
| 55 | 54 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 std::string* error_html, | 114 std::string* error_html, |
| 116 string16* error_description) {} | 115 string16* error_description) {} |
| 117 | 116 |
| 118 // Allows embedder to override creating a WebMediaPlayerImpl. If it returns | 117 // Allows embedder to override creating a WebMediaPlayerImpl. If it returns |
| 119 // NULL the content layer will create the media player. | 118 // NULL the content layer will create the media player. |
| 120 virtual webkit_media::WebMediaPlayerImpl* OverrideCreateWebMediaPlayer( | 119 virtual webkit_media::WebMediaPlayerImpl* OverrideCreateWebMediaPlayer( |
| 121 RenderView* render_view, | 120 RenderView* render_view, |
| 122 WebKit::WebFrame* frame, | 121 WebKit::WebFrame* frame, |
| 123 WebKit::WebMediaPlayerClient* client, | 122 WebKit::WebMediaPlayerClient* client, |
| 124 base::WeakPtr<webkit_media::WebMediaPlayerDelegate> delegate, | 123 base::WeakPtr<webkit_media::WebMediaPlayerDelegate> delegate, |
| 125 media::FilterCollection* collection, | |
| 126 WebKit::WebAudioSourceProvider* audio_source_provider, | 124 WebKit::WebAudioSourceProvider* audio_source_provider, |
| 127 media::AudioRendererSink* audio_renderer_sink, | 125 media::AudioRendererSink* audio_renderer_sink, |
| 128 media::MessageLoopFactory* message_loop_factory, | 126 const scoped_refptr<media::GpuVideoDecoder::Factories>& gpu_factories, |
| 129 webkit_media::MediaStreamClient* media_stream_client, | 127 webkit_media::MediaStreamClient* media_stream_client, |
| 130 media::MediaLog* media_log); | 128 media::MediaLog* media_log); |
| 131 | 129 |
| 132 // Returns true if the renderer process should schedule the idle handler when | 130 // Returns true if the renderer process should schedule the idle handler when |
| 133 // all widgets are hidden. | 131 // all widgets are hidden. |
| 134 virtual bool RunIdleHandlerWhenWidgetsHidden(); | 132 virtual bool RunIdleHandlerWhenWidgetsHidden(); |
| 135 | 133 |
| 136 // Returns true if a popup window should be allowed. | 134 // Returns true if a popup window should be allowed. |
| 137 virtual bool AllowPopup(); | 135 virtual bool AllowPopup(); |
| 138 | 136 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 const GURL& first_party_for_cookies, | 192 const GURL& first_party_for_cookies, |
| 195 const std::string& value); | 193 const std::string& value); |
| 196 | 194 |
| 197 virtual void RegisterPPAPIInterfaceFactories( | 195 virtual void RegisterPPAPIInterfaceFactories( |
| 198 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} | 196 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} |
| 199 }; | 197 }; |
| 200 | 198 |
| 201 } // namespace content | 199 } // namespace content |
| 202 | 200 |
| 203 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 201 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |