| 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/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 struct WebURLError; | 47 struct WebURLError; |
| 48 } | 48 } |
| 49 | 49 |
| 50 namespace webkit { | 50 namespace webkit { |
| 51 namespace ppapi { | 51 namespace ppapi { |
| 52 class PpapiInterfaceFactoryManager; | 52 class PpapiInterfaceFactoryManager; |
| 53 } | 53 } |
| 54 struct WebPluginInfo; | 54 struct WebPluginInfo; |
| 55 } | 55 } |
| 56 | 56 |
| 57 namespace webkit_media { | |
| 58 class WebMediaPlayerDelegate; | |
| 59 class WebMediaPlayerImpl; | |
| 60 class WebMediaPlayerParams; | |
| 61 } | |
| 62 | |
| 63 namespace content { | 57 namespace content { |
| 64 | 58 |
| 65 class RenderView; | 59 class RenderView; |
| 66 class SynchronousCompositor; | 60 class SynchronousCompositor; |
| 61 class WebMediaPlayerDelegate; |
| 62 class WebMediaPlayerImpl; |
| 63 class WebMediaPlayerParams; |
| 67 | 64 |
| 68 // Embedder API for participating in renderer logic. | 65 // Embedder API for participating in renderer logic. |
| 69 class CONTENT_EXPORT ContentRendererClient { | 66 class CONTENT_EXPORT ContentRendererClient { |
| 70 public: | 67 public: |
| 71 virtual ~ContentRendererClient() {} | 68 virtual ~ContentRendererClient() {} |
| 72 | 69 |
| 73 // Notifies us that the RenderThread has been created. | 70 // Notifies us that the RenderThread has been created. |
| 74 virtual void RenderThreadStarted() {} | 71 virtual void RenderThreadStarted() {} |
| 75 | 72 |
| 76 // Notifies that a new RenderView has been created. | 73 // Notifies that a new RenderView has been created. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // initialize the string values with safe defaults before the call. | 118 // initialize the string values with safe defaults before the call. |
| 122 virtual void GetNavigationErrorStrings( | 119 virtual void GetNavigationErrorStrings( |
| 123 WebKit::WebFrame* frame, | 120 WebKit::WebFrame* frame, |
| 124 const WebKit::WebURLRequest& failed_request, | 121 const WebKit::WebURLRequest& failed_request, |
| 125 const WebKit::WebURLError& error, | 122 const WebKit::WebURLError& error, |
| 126 std::string* error_html, | 123 std::string* error_html, |
| 127 string16* error_description) {} | 124 string16* error_description) {} |
| 128 | 125 |
| 129 // Allows embedder to override creating a WebMediaPlayerImpl. If it returns | 126 // Allows embedder to override creating a WebMediaPlayerImpl. If it returns |
| 130 // NULL the content layer will create the media player. | 127 // NULL the content layer will create the media player. |
| 131 virtual webkit_media::WebMediaPlayerImpl* OverrideCreateWebMediaPlayer( | 128 virtual WebMediaPlayerImpl* OverrideCreateWebMediaPlayer( |
| 132 RenderView* render_view, | 129 RenderView* render_view, |
| 133 WebKit::WebFrame* frame, | 130 WebKit::WebFrame* frame, |
| 134 WebKit::WebMediaPlayerClient* client, | 131 WebKit::WebMediaPlayerClient* client, |
| 135 base::WeakPtr<webkit_media::WebMediaPlayerDelegate> delegate, | 132 base::WeakPtr<WebMediaPlayerDelegate> delegate, |
| 136 const webkit_media::WebMediaPlayerParams& params); | 133 const WebMediaPlayerParams& params); |
| 137 | 134 |
| 138 // Allows the embedder to override creating a WebMediaStreamCenter. If it | 135 // Allows the embedder to override creating a WebMediaStreamCenter. If it |
| 139 // returns NULL the content layer will create the stream center. | 136 // returns NULL the content layer will create the stream center. |
| 140 virtual WebKit::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( | 137 virtual WebKit::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( |
| 141 WebKit::WebMediaStreamCenterClient* client); | 138 WebKit::WebMediaStreamCenterClient* client); |
| 142 | 139 |
| 143 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If | 140 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If |
| 144 // it returns NULL the content layer will create the connection handler. | 141 // it returns NULL the content layer will create the connection handler. |
| 145 virtual WebKit::WebRTCPeerConnectionHandler* | 142 virtual WebKit::WebRTCPeerConnectionHandler* |
| 146 OverrideCreateWebRTCPeerConnectionHandler( | 143 OverrideCreateWebRTCPeerConnectionHandler( |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 // Returns whether BrowserPlugin should be allowed within the |container|. | 244 // Returns whether BrowserPlugin should be allowed within the |container|. |
| 248 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; | 245 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; |
| 249 | 246 |
| 250 // Returns true if the page at |url| can use Pepper MediaStream APIs. | 247 // Returns true if the page at |url| can use Pepper MediaStream APIs. |
| 251 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const; | 248 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const; |
| 252 }; | 249 }; |
| 253 | 250 |
| 254 } // namespace content | 251 } // namespace content |
| 255 | 252 |
| 256 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 253 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |