Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(602)

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 318753010: Introduce the ENABLE_BROWSER_CDMS macro. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review. Please diff against PS1 for easy life. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 class NotificationProvider; 63 class NotificationProvider;
64 class PepperPluginInstanceImpl; 64 class PepperPluginInstanceImpl;
65 class RendererPpapiHost; 65 class RendererPpapiHost;
66 class RenderFrameObserver; 66 class RenderFrameObserver;
67 class RenderViewImpl; 67 class RenderViewImpl;
68 class RenderWidget; 68 class RenderWidget;
69 class RenderWidgetFullscreenPepper; 69 class RenderWidgetFullscreenPepper;
70 struct CustomContextMenuContext; 70 struct CustomContextMenuContext;
71 71
72 #if defined(OS_ANDROID) 72 #if defined(OS_ANDROID)
73 class RendererMediaPlayerManager;
74 #endif
75
76 #if defined(ENABLE_BROWSER_CDMS)
73 class RendererCdmManager; 77 class RendererCdmManager;
74 class RendererMediaPlayerManager;
75 #endif 78 #endif
76 79
77 class CONTENT_EXPORT RenderFrameImpl 80 class CONTENT_EXPORT RenderFrameImpl
78 : public RenderFrame, 81 : public RenderFrame,
79 NON_EXPORTED_BASE(public blink::WebFrameClient), 82 NON_EXPORTED_BASE(public blink::WebFrameClient),
80 NON_EXPORTED_BASE(public WebMediaPlayerDelegate) { 83 NON_EXPORTED_BASE(public WebMediaPlayerDelegate) {
81 public: 84 public:
82 // Creates a new RenderFrame. |render_view| is the RenderView object that this 85 // Creates a new RenderFrame. |render_view| is the RenderView object that this
83 // frame belongs to. 86 // frame belongs to.
84 // Callers *must* call |SetWebFrame| immediately after creation. 87 // Callers *must* call |SetWebFrame| immediately after creation.
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 // Creates a factory object used for creating audio and video renderers. 537 // Creates a factory object used for creating audio and video renderers.
535 // The method is virtual so that layouttests can override it. 538 // The method is virtual so that layouttests can override it.
536 virtual scoped_ptr<MediaStreamRendererFactory> CreateRendererFactory(); 539 virtual scoped_ptr<MediaStreamRendererFactory> CreateRendererFactory();
537 540
538 #if defined(OS_ANDROID) 541 #if defined(OS_ANDROID)
539 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer( 542 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer(
540 const blink::WebURL& url, 543 const blink::WebURL& url,
541 blink::WebMediaPlayerClient* client); 544 blink::WebMediaPlayerClient* client);
542 545
543 RendererMediaPlayerManager* GetMediaPlayerManager(); 546 RendererMediaPlayerManager* GetMediaPlayerManager();
547 #endif
548
549 #if defined(ENABLE_BROWSER_CDMS)
544 RendererCdmManager* GetCdmManager(); 550 RendererCdmManager* GetCdmManager();
545 #endif 551 #endif
546 552
547 // Stores the WebLocalFrame we are associated with. 553 // Stores the WebLocalFrame we are associated with.
548 blink::WebLocalFrame* frame_; 554 blink::WebLocalFrame* frame_;
549 555
550 base::WeakPtr<RenderViewImpl> render_view_; 556 base::WeakPtr<RenderViewImpl> render_view_;
551 int routing_id_; 557 int routing_id_;
552 bool is_swapped_out_; 558 bool is_swapped_out_;
553 // RenderFrameProxy exists only when is_swapped_out_ is true. 559 // RenderFrameProxy exists only when is_swapped_out_ is true.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 // The next group of objects all implement RenderFrameObserver, so are deleted 609 // The next group of objects all implement RenderFrameObserver, so are deleted
604 // along with the RenderFrame automatically. This is why we just store weak 610 // along with the RenderFrame automatically. This is why we just store weak
605 // references. 611 // references.
606 612
607 // Holds a reference to the service which provides desktop notifications. 613 // Holds a reference to the service which provides desktop notifications.
608 NotificationProvider* notification_provider_; 614 NotificationProvider* notification_provider_;
609 615
610 blink::WebUserMediaClient* web_user_media_client_; 616 blink::WebUserMediaClient* web_user_media_client_;
611 617
612 #if defined(OS_ANDROID) 618 #if defined(OS_ANDROID)
613 // These manage all media players and CDMs in this render frame for 619 // These manage all media players in this render frame for communicating with
614 // communicating with the real media player and CDM objects in the browser 620 // the real media player in the browser process. It's okay to use a raw
615 // process. It's okay to use raw pointers since they are RenderFrameObservers. 621 // pointer since it's a RenderFrameObserver.
616 RendererMediaPlayerManager* media_player_manager_; 622 RendererMediaPlayerManager* media_player_manager_;
623 #endif
624
625 #if defined(ENABLE_BROWSER_CDMS)
626 // These manage all CDMs in this render frame for communicating with the real
627 // CDM in the browser process. It's okay to use a raw pointer since it's a
628 // RenderFrameObserver.
617 RendererCdmManager* cdm_manager_; 629 RendererCdmManager* cdm_manager_;
618 #endif 630 #endif
619 631
620 // The geolocation dispatcher attached to this view, lazily initialized. 632 // The geolocation dispatcher attached to this view, lazily initialized.
621 GeolocationDispatcher* geolocation_dispatcher_; 633 GeolocationDispatcher* geolocation_dispatcher_;
622 634
623 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 635 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
624 636
625 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 637 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
626 }; 638 };
627 639
628 } // namespace content 640 } // namespace content
629 641
630 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 642 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698