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

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

Issue 294043015: Move creation of MediaStream renders from MediaStreamImpl to MediaStreamRenderFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Win build. Created 6 years, 7 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 namespace gfx { 48 namespace gfx {
49 class Point; 49 class Point;
50 class Range; 50 class Range;
51 class Rect; 51 class Rect;
52 } 52 }
53 53
54 namespace content { 54 namespace content {
55 55
56 class ChildFrameCompositingHelper; 56 class ChildFrameCompositingHelper;
57 class MediaStreamClient;
58 class NotificationProvider; 57 class NotificationProvider;
59 class PepperPluginInstanceImpl; 58 class PepperPluginInstanceImpl;
60 class RendererPpapiHost; 59 class RendererPpapiHost;
61 class RenderFrameObserver; 60 class RenderFrameObserver;
62 class RenderViewImpl; 61 class RenderViewImpl;
63 class RenderWidget; 62 class RenderWidget;
64 class RenderWidgetFullscreenPepper; 63 class RenderWidgetFullscreenPepper;
65 struct CustomContextMenuContext; 64 struct CustomContextMenuContext;
66 65
67 class CONTENT_EXPORT RenderFrameImpl 66 class CONTENT_EXPORT RenderFrameImpl
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 const base::string16& text, 180 const base::string16& text,
182 const std::vector<blink::WebCompositionUnderline>& underlines, 181 const std::vector<blink::WebCompositionUnderline>& underlines,
183 int selection_start, 182 int selection_start,
184 int selection_end); 183 int selection_end);
185 void OnImeConfirmComposition( 184 void OnImeConfirmComposition(
186 const base::string16& text, 185 const base::string16& text,
187 const gfx::Range& replacement_range, 186 const gfx::Range& replacement_range,
188 bool keep_selection); 187 bool keep_selection);
189 #endif // ENABLE_PLUGINS 188 #endif // ENABLE_PLUGINS
190 189
191 // Overrides the MediaStreamClient used when creating MediaStream players.
192 // Must be called before any players are created.
193 void SetMediaStreamClientForTesting(MediaStreamClient* media_stream_client);
194
195 // IPC::Sender 190 // IPC::Sender
196 virtual bool Send(IPC::Message* msg) OVERRIDE; 191 virtual bool Send(IPC::Message* msg) OVERRIDE;
197 192
198 // IPC::Listener 193 // IPC::Listener
199 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 194 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
200 195
201 // RenderFrame implementation: 196 // RenderFrame implementation:
202 virtual RenderView* GetRenderView() OVERRIDE; 197 virtual RenderView* GetRenderView() OVERRIDE;
203 virtual int GetRoutingID() OVERRIDE; 198 virtual int GetRoutingID() OVERRIDE;
204 virtual blink::WebFrame* GetWebFrame() OVERRIDE; 199 virtual blink::WebFrame* GetWebFrame() OVERRIDE;
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 const base::string16& message, 499 const base::string16& message,
505 const base::string16& default_value, 500 const base::string16& default_value,
506 const GURL& frame_url, 501 const GURL& frame_url,
507 base::string16* result); 502 base::string16* result);
508 503
509 // Loads the appropriate error page for the specified failure into the frame. 504 // Loads the appropriate error page for the specified failure into the frame.
510 void LoadNavigationErrorPage(const blink::WebURLRequest& failed_request, 505 void LoadNavigationErrorPage(const blink::WebURLRequest& failed_request,
511 const blink::WebURLError& error, 506 const blink::WebURLError& error,
512 bool replace); 507 bool replace);
513 508
514 // Initializes |media_stream_client_|, returning true if successful. Returns 509 // Initializes |web_user_media_client_|, returning true if successful. Returns
515 // false if it wasn't possible to create a MediaStreamClient (e.g., WebRTC is 510 // false if it wasn't possible to create a MediaStreamClient (e.g., WebRTC is
516 // disabled) in which case |media_stream_client_| is NULL. 511 // disabled) in which case |web_user_media_client_| is NULL.
517 bool InitializeMediaStreamClient(); 512 bool InitializeUserMediaClient();
518 513
519 blink::WebMediaPlayer* CreateWebMediaPlayerForMediaStream( 514 blink::WebMediaPlayer* CreateWebMediaPlayerForMediaStream(
520 const blink::WebURL& url, 515 const blink::WebURL& url,
521 blink::WebMediaPlayerClient* client); 516 blink::WebMediaPlayerClient* client);
522 517
523 #if defined(OS_ANDROID) 518 #if defined(OS_ANDROID)
524 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer( 519 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer(
525 const blink::WebURL& url, 520 const blink::WebURL& url,
526 blink::WebMediaPlayerClient* client); 521 blink::WebMediaPlayerClient* client);
527 #endif 522 #endif
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 // of handling a InputMsg_SelectRange IPC. 577 // of handling a InputMsg_SelectRange IPC.
583 bool handling_select_range_; 578 bool handling_select_range_;
584 579
585 // The next group of objects all implement RenderFrameObserver, so are deleted 580 // The next group of objects all implement RenderFrameObserver, so are deleted
586 // along with the RenderFrame automatically. This is why we just store weak 581 // along with the RenderFrame automatically. This is why we just store weak
587 // references. 582 // references.
588 583
589 // Holds a reference to the service which provides desktop notifications. 584 // Holds a reference to the service which provides desktop notifications.
590 NotificationProvider* notification_provider_; 585 NotificationProvider* notification_provider_;
591 586
592 // MediaStreamClient attached to this frame; lazily initialized.
593 MediaStreamClient* media_stream_client_;
594 blink::WebUserMediaClient* web_user_media_client_; 587 blink::WebUserMediaClient* web_user_media_client_;
595 588
596 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 589 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
597 590
598 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 591 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
599 }; 592 };
600 593
601 } // namespace content 594 } // namespace content
602 595
603 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 596 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698