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

Unified Diff: content/renderer/media/webrtc/peer_connection_dependency_factory.cc

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Split a DCHECK in two as suggested by boliu@. Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/webrtc/peer_connection_dependency_factory.cc
diff --git a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
index 963de652a3970586c0825713f2d86e0fcd5f49c5..8305daaa0c95ab99254679c06efa83c452e7f465 100644
--- a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
+++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
+#include <memory>
#include <utility>
#include <vector>
@@ -61,7 +62,7 @@
#include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
#include "third_party/WebKit/public/platform/WebURL.h"
#include "third_party/WebKit/public/web/WebDocument.h"
-#include "third_party/WebKit/public/web/WebFrame.h"
+#include "third_party/WebKit/public/web/WebLocalFrame.h"
#include "third_party/webrtc/api/audio_codecs/builtin_audio_decoder_factory.h"
#include "third_party/webrtc/api/audio_codecs/builtin_audio_encoder_factory.h"
#include "third_party/webrtc/api/mediaconstraintsinterface.h"
@@ -277,14 +278,14 @@ bool PeerConnectionDependencyFactory::PeerConnectionFactoryCreated() {
scoped_refptr<webrtc::PeerConnectionInterface>
PeerConnectionDependencyFactory::CreatePeerConnection(
const webrtc::PeerConnectionInterface::RTCConfiguration& config,
- blink::WebFrame* web_frame,
+ blink::WebLocalFrame* web_frame,
webrtc::PeerConnectionObserver* observer) {
CHECK(web_frame);
CHECK(observer);
if (!GetPcFactory().get())
return NULL;
- // Copy the flag from Preference associated with this WebFrame.
+ // Copy the flag from Preference associated with this WebLocalFrame.
P2PPortAllocator::Config port_config;
uint16_t min_port = 0;
uint16_t max_port = 0;
« no previous file with comments | « content/renderer/media/webrtc/peer_connection_dependency_factory.h ('k') | content/renderer/pepper/pepper_file_system_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698