| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 blink::WebNavigationPolicy policy) OVERRIDE; | 265 blink::WebNavigationPolicy policy) OVERRIDE; |
| 266 virtual void ExecuteJavaScript(const base::string16& javascript) OVERRIDE; | 266 virtual void ExecuteJavaScript(const base::string16& javascript) OVERRIDE; |
| 267 virtual bool IsHidden() OVERRIDE; | 267 virtual bool IsHidden() OVERRIDE; |
| 268 virtual ServiceRegistry* GetServiceRegistry() OVERRIDE; | 268 virtual ServiceRegistry* GetServiceRegistry() OVERRIDE; |
| 269 virtual bool IsFTPDirectoryListing() OVERRIDE; | 269 virtual bool IsFTPDirectoryListing() OVERRIDE; |
| 270 virtual void AttachGuest(int element_instance_id) OVERRIDE; | 270 virtual void AttachGuest(int element_instance_id) OVERRIDE; |
| 271 | 271 |
| 272 // blink::WebFrameClient implementation: | 272 // blink::WebFrameClient implementation: |
| 273 virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, | 273 virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, |
| 274 const blink::WebPluginParams& params); | 274 const blink::WebPluginParams& params); |
| 275 // TODO(jrummell): Remove this method once blink updated. |
| 275 virtual blink::WebMediaPlayer* createMediaPlayer( | 276 virtual blink::WebMediaPlayer* createMediaPlayer( |
| 276 blink::WebLocalFrame* frame, | 277 blink::WebLocalFrame* frame, |
| 277 const blink::WebURL& url, | 278 const blink::WebURL& url, |
| 278 blink::WebMediaPlayerClient* client); | 279 blink::WebMediaPlayerClient* client); |
| 280 virtual blink::WebMediaPlayer* createMediaPlayer( |
| 281 blink::WebLocalFrame* frame, |
| 282 const blink::WebURL& url, |
| 283 blink::WebMediaPlayerClient* client, |
| 284 blink::WebContentDecryptionModule* initial_cdm); |
| 279 virtual blink::WebContentDecryptionModule* createContentDecryptionModule( | 285 virtual blink::WebContentDecryptionModule* createContentDecryptionModule( |
| 280 blink::WebLocalFrame* frame, | 286 blink::WebLocalFrame* frame, |
| 281 const blink::WebSecurityOrigin& security_origin, | 287 const blink::WebSecurityOrigin& security_origin, |
| 282 const blink::WebString& key_system); | 288 const blink::WebString& key_system); |
| 283 virtual blink::WebApplicationCacheHost* createApplicationCacheHost( | 289 virtual blink::WebApplicationCacheHost* createApplicationCacheHost( |
| 284 blink::WebLocalFrame* frame, | 290 blink::WebLocalFrame* frame, |
| 285 blink::WebApplicationCacheHostClient* client); | 291 blink::WebApplicationCacheHostClient* client); |
| 286 virtual blink::WebWorkerPermissionClientProxy* | 292 virtual blink::WebWorkerPermissionClientProxy* |
| 287 createWorkerPermissionClientProxy(blink::WebLocalFrame* frame); | 293 createWorkerPermissionClientProxy(blink::WebLocalFrame* frame); |
| 288 virtual blink::WebExternalPopupMenu* createExternalPopupMenu( | 294 virtual blink::WebExternalPopupMenu* createExternalPopupMenu( |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 // Creates a factory object used for creating audio and video renderers. | 616 // Creates a factory object used for creating audio and video renderers. |
| 611 // The method is virtual so that layouttests can override it. | 617 // The method is virtual so that layouttests can override it. |
| 612 virtual scoped_ptr<MediaStreamRendererFactory> CreateRendererFactory(); | 618 virtual scoped_ptr<MediaStreamRendererFactory> CreateRendererFactory(); |
| 613 | 619 |
| 614 // Returns the URL being loaded by the |frame_|'s request. | 620 // Returns the URL being loaded by the |frame_|'s request. |
| 615 GURL GetLoadingUrl() const; | 621 GURL GetLoadingUrl() const; |
| 616 | 622 |
| 617 #if defined(OS_ANDROID) | 623 #if defined(OS_ANDROID) |
| 618 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer( | 624 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer( |
| 619 const blink::WebURL& url, | 625 const blink::WebURL& url, |
| 620 blink::WebMediaPlayerClient* client); | 626 blink::WebMediaPlayerClient* client, |
| 627 blink::WebContentDecryptionModule* initial_cdm); |
| 621 | 628 |
| 622 RendererMediaPlayerManager* GetMediaPlayerManager(); | 629 RendererMediaPlayerManager* GetMediaPlayerManager(); |
| 623 #endif | 630 #endif |
| 624 | 631 |
| 625 #if defined(ENABLE_BROWSER_CDMS) | 632 #if defined(ENABLE_BROWSER_CDMS) |
| 626 RendererCdmManager* GetCdmManager(); | 633 RendererCdmManager* GetCdmManager(); |
| 627 #endif | 634 #endif |
| 628 | 635 |
| 629 // Stores the WebLocalFrame we are associated with. | 636 // Stores the WebLocalFrame we are associated with. |
| 630 blink::WebLocalFrame* frame_; | 637 blink::WebLocalFrame* frame_; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 #endif | 755 #endif |
| 749 | 756 |
| 750 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 757 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 751 | 758 |
| 752 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 759 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 753 }; | 760 }; |
| 754 | 761 |
| 755 } // namespace content | 762 } // namespace content |
| 756 | 763 |
| 757 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 764 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |