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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 9309078: Adding a skeleton MediaStreamCenter. (Closed)
Patch Set: Fixed review comments Created 8 years, 10 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
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "content/renderer/renderer_webkitplatformsupport_impl.h" 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 using WebKit::WebAudioDevice; 80 using WebKit::WebAudioDevice;
81 using WebKit::WebBlobRegistry; 81 using WebKit::WebBlobRegistry;
82 using WebKit::WebFileSystem; 82 using WebKit::WebFileSystem;
83 using WebKit::WebFrame; 83 using WebKit::WebFrame;
84 using WebKit::WebGamepads; 84 using WebKit::WebGamepads;
85 using WebKit::WebIDBFactory; 85 using WebKit::WebIDBFactory;
86 using WebKit::WebIDBKey; 86 using WebKit::WebIDBKey;
87 using WebKit::WebIDBKeyPath; 87 using WebKit::WebIDBKeyPath;
88 using WebKit::WebKitPlatformSupport; 88 using WebKit::WebKitPlatformSupport;
89 using WebKit::WebMediaStreamCenter;
90 using WebKit::WebMediaStreamCenterClient;
91 using WebKit::WebPeerConnectionHandler;
92 using WebKit::WebPeerConnectionHandlerClient;
89 using WebKit::WebSerializedScriptValue; 93 using WebKit::WebSerializedScriptValue;
90 using WebKit::WebStorageArea; 94 using WebKit::WebStorageArea;
91 using WebKit::WebStorageEventDispatcher; 95 using WebKit::WebStorageEventDispatcher;
92 using WebKit::WebStorageNamespace; 96 using WebKit::WebStorageNamespace;
93 using WebKit::WebString; 97 using WebKit::WebString;
94 using WebKit::WebURL; 98 using WebKit::WebURL;
95 using WebKit::WebVector; 99 using WebKit::WebVector;
96 100
97 //------------------------------------------------------------------------------ 101 //------------------------------------------------------------------------------
98 102
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 void RendererWebKitPlatformSupportImpl::GetPlugins( 666 void RendererWebKitPlatformSupportImpl::GetPlugins(
663 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) { 667 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) {
664 if (!RenderThreadImpl::current()->plugin_refresh_allowed()) 668 if (!RenderThreadImpl::current()->plugin_refresh_allowed())
665 refresh = false; 669 refresh = false;
666 RenderThreadImpl::current()->Send( 670 RenderThreadImpl::current()->Send(
667 new ViewHostMsg_GetPlugins(refresh, plugins)); 671 new ViewHostMsg_GetPlugins(refresh, plugins));
668 } 672 }
669 673
670 //------------------------------------------------------------------------------ 674 //------------------------------------------------------------------------------
671 675
672 WebKit::WebPeerConnectionHandler* 676 namespace {
673 RendererWebKitPlatformSupportImpl::createPeerConnectionHandler( 677
674 WebKit::WebPeerConnectionHandlerClient* client) { 678 RenderViewImpl* findRenderView() {
675 WebFrame* web_frame = WebFrame::frameForCurrentContext(); 679 WebFrame* web_frame = WebFrame::frameForCurrentContext();
676 if (!web_frame) 680 if (!web_frame)
677 return NULL; 681 return NULL;
678 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); 682 return RenderViewImpl::FromWebView(web_frame->view());
683 }
684
685 }
686
687 WebPeerConnectionHandler*
688 RendererWebKitPlatformSupportImpl::createPeerConnectionHandler(
689 WebPeerConnectionHandlerClient* client) {
690 RenderViewImpl* render_view = findRenderView();
679 if (!render_view) 691 if (!render_view)
680 return NULL; 692 return NULL;
681 return render_view->CreatePeerConnectionHandler(client); 693 return render_view->CreatePeerConnectionHandler(client);
682 } 694 }
695
696 WebMediaStreamCenter*
697 RendererWebKitPlatformSupportImpl::createMediaStreamCenter(
698 WebMediaStreamCenterClient* client) {
699 RenderViewImpl* render_view = findRenderView();
darin (slow to review) 2012/02/13 17:44:30 yeah, what piman said. if you need the interface
700 if (!render_view)
701 return NULL;
702 return render_view->CreateMediaStreamCenter(client);
703 }
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698