| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace webkit { | 32 namespace webkit { |
| 33 namespace ppapi { | 33 namespace ppapi { |
| 34 class PpapiInterfaceFactoryManager; | 34 class PpapiInterfaceFactoryManager; |
| 35 } | 35 } |
| 36 struct WebPluginInfo; | 36 struct WebPluginInfo; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace media { | 39 namespace media { |
| 40 class AudioRendererSink; |
| 40 class FilterCollection; | 41 class FilterCollection; |
| 41 class MediaLog; | 42 class MediaLog; |
| 42 class MessageLoopFactory; | 43 class MessageLoopFactory; |
| 43 } | 44 } |
| 44 | 45 |
| 45 namespace webkit_media { | 46 namespace webkit_media { |
| 46 class MediaStreamClient; | 47 class MediaStreamClient; |
| 47 class WebMediaPlayerDelegate; | 48 class WebMediaPlayerDelegate; |
| 48 class WebMediaPlayerImpl; | 49 class WebMediaPlayerImpl; |
| 49 } | 50 } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 111 |
| 111 // Allows embedder to override creating a WebMediaPlayerImpl. If it returns | 112 // Allows embedder to override creating a WebMediaPlayerImpl. If it returns |
| 112 // NULL the content layer will create the media player. | 113 // NULL the content layer will create the media player. |
| 113 virtual webkit_media::WebMediaPlayerImpl* OverrideCreateWebMediaPlayer( | 114 virtual webkit_media::WebMediaPlayerImpl* OverrideCreateWebMediaPlayer( |
| 114 RenderView* render_view, | 115 RenderView* render_view, |
| 115 WebKit::WebFrame* frame, | 116 WebKit::WebFrame* frame, |
| 116 WebKit::WebMediaPlayerClient* client, | 117 WebKit::WebMediaPlayerClient* client, |
| 117 base::WeakPtr<webkit_media::WebMediaPlayerDelegate> delegate, | 118 base::WeakPtr<webkit_media::WebMediaPlayerDelegate> delegate, |
| 118 media::FilterCollection* collection, | 119 media::FilterCollection* collection, |
| 119 WebKit::WebAudioSourceProvider* audio_source_provider, | 120 WebKit::WebAudioSourceProvider* audio_source_provider, |
| 121 media::AudioRendererSink* audio_renderer_sink, |
| 120 media::MessageLoopFactory* message_loop_factory, | 122 media::MessageLoopFactory* message_loop_factory, |
| 121 webkit_media::MediaStreamClient* media_stream_client, | 123 webkit_media::MediaStreamClient* media_stream_client, |
| 122 media::MediaLog* media_log); | 124 media::MediaLog* media_log); |
| 123 | 125 |
| 124 // Returns true if the renderer process should schedule the idle handler when | 126 // Returns true if the renderer process should schedule the idle handler when |
| 125 // all widgets are hidden. | 127 // all widgets are hidden. |
| 126 virtual bool RunIdleHandlerWhenWidgetsHidden(); | 128 virtual bool RunIdleHandlerWhenWidgetsHidden(); |
| 127 | 129 |
| 128 // Returns true if the given url can create popup windows. | 130 // Returns true if the given url can create popup windows. |
| 129 virtual bool AllowPopup(const GURL& creator); | 131 virtual bool AllowPopup(const GURL& creator); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 const GURL& first_party_for_cookies, | 178 const GURL& first_party_for_cookies, |
| 177 const std::string& value); | 179 const std::string& value); |
| 178 | 180 |
| 179 virtual void RegisterPPAPIInterfaceFactories( | 181 virtual void RegisterPPAPIInterfaceFactories( |
| 180 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} | 182 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} |
| 181 }; | 183 }; |
| 182 | 184 |
| 183 } // namespace content | 185 } // namespace content |
| 184 | 186 |
| 185 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 187 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |