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

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

Issue 295103015: Separate RendererCdmManager from RendererMediaPlayerManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 class NotificationProvider; 62 class NotificationProvider;
63 class PepperPluginInstanceImpl; 63 class PepperPluginInstanceImpl;
64 class RendererPpapiHost; 64 class RendererPpapiHost;
65 class RenderFrameObserver; 65 class RenderFrameObserver;
66 class RenderViewImpl; 66 class RenderViewImpl;
67 class RenderWidget; 67 class RenderWidget;
68 class RenderWidgetFullscreenPepper; 68 class RenderWidgetFullscreenPepper;
69 struct CustomContextMenuContext; 69 struct CustomContextMenuContext;
70 70
71 #if defined(OS_ANDROID) 71 #if defined(OS_ANDROID)
72 class RendererCdmManager;
72 class RendererMediaPlayerManager; 73 class RendererMediaPlayerManager;
73 #endif 74 #endif
74 75
75 class CONTENT_EXPORT RenderFrameImpl 76 class CONTENT_EXPORT RenderFrameImpl
76 : public RenderFrame, 77 : public RenderFrame,
77 NON_EXPORTED_BASE(public blink::WebFrameClient), 78 NON_EXPORTED_BASE(public blink::WebFrameClient),
78 NON_EXPORTED_BASE(public WebMediaPlayerDelegate) { 79 NON_EXPORTED_BASE(public WebMediaPlayerDelegate) {
79 public: 80 public:
80 // Creates a new RenderFrame. |render_view| is the RenderView object that this 81 // Creates a new RenderFrame. |render_view| is the RenderView object that this
81 // frame belongs to. 82 // frame belongs to.
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 523
523 blink::WebMediaPlayer* CreateWebMediaPlayerForMediaStream( 524 blink::WebMediaPlayer* CreateWebMediaPlayerForMediaStream(
524 const blink::WebURL& url, 525 const blink::WebURL& url,
525 blink::WebMediaPlayerClient* client); 526 blink::WebMediaPlayerClient* client);
526 527
527 // Creates a factory object used for creating audio and video renderers. 528 // Creates a factory object used for creating audio and video renderers.
528 // The method is virtual so that layouttests can override it. 529 // The method is virtual so that layouttests can override it.
529 virtual scoped_ptr<MediaStreamRendererFactory> CreateRendererFactory(); 530 virtual scoped_ptr<MediaStreamRendererFactory> CreateRendererFactory();
530 531
531 #if defined(OS_ANDROID) 532 #if defined(OS_ANDROID)
532 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer( 533 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer(
533 const blink::WebURL& url, 534 const blink::WebURL& url,
534 blink::WebMediaPlayerClient* client); 535 blink::WebMediaPlayerClient* client);
535 536
536 RendererMediaPlayerManager* GetMediaPlayerManager(); 537 RendererMediaPlayerManager* GetMediaPlayerManager();
538 RendererCdmManager* GetCdmManager();
537 #endif 539 #endif
538 540
539 // Stores the WebLocalFrame we are associated with. 541 // Stores the WebLocalFrame we are associated with.
540 blink::WebLocalFrame* frame_; 542 blink::WebLocalFrame* frame_;
541 543
542 base::WeakPtr<RenderViewImpl> render_view_; 544 base::WeakPtr<RenderViewImpl> render_view_;
543 int routing_id_; 545 int routing_id_;
544 bool is_swapped_out_; 546 bool is_swapped_out_;
545 // RenderFrameProxy exists only when is_swapped_out_ is true. 547 // RenderFrameProxy exists only when is_swapped_out_ is true.
546 // TODO(nasko): This can be removed once we don't have a swapped out state on 548 // TODO(nasko): This can be removed once we don't have a swapped out state on
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 // The next group of objects all implement RenderFrameObserver, so are deleted 597 // The next group of objects all implement RenderFrameObserver, so are deleted
596 // along with the RenderFrame automatically. This is why we just store weak 598 // along with the RenderFrame automatically. This is why we just store weak
597 // references. 599 // references.
598 600
599 // Holds a reference to the service which provides desktop notifications. 601 // Holds a reference to the service which provides desktop notifications.
600 NotificationProvider* notification_provider_; 602 NotificationProvider* notification_provider_;
601 603
602 blink::WebUserMediaClient* web_user_media_client_; 604 blink::WebUserMediaClient* web_user_media_client_;
603 605
604 #if defined(OS_ANDROID) 606 #if defined(OS_ANDROID)
605 // Manages all media players in this render frame for communicating with the 607 // These manage all media players and CDMs in this render frame for
606 // real media player and CDM objects in the browser process. It's okay to use 608 // communicating with the real media player and CDM objects in the browser
607 // raw pointers since it's a RenderFrameObserver. 609 // process. It's okay to use raw pointers since they are RenderFrameObservers.
608 RendererMediaPlayerManager* media_player_manager_; 610 RendererMediaPlayerManager* media_player_manager_;
611 RendererCdmManager* cdm_manager_;
609 #endif 612 #endif
610 613
611 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 614 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
612 615
613 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 616 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
614 }; 617 };
615 618
616 } // namespace content 619 } // namespace content
617 620
618 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 621 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/crypto/renderer_cdm_manager.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698