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

Side by Side Diff: content/renderer/media/webrtc/peer_connection_dependency_factory.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 15 matching lines...) Expand all
26 26
27 namespace media { 27 namespace media {
28 class GpuVideoAcceleratorFactories; 28 class GpuVideoAcceleratorFactories;
29 } 29 }
30 30
31 namespace rtc { 31 namespace rtc {
32 class Thread; 32 class Thread;
33 } 33 }
34 34
35 namespace blink { 35 namespace blink {
36 class WebFrame; 36 class WebLocalFrame;
37 class WebRTCPeerConnectionHandler; 37 class WebRTCPeerConnectionHandler;
38 class WebRTCPeerConnectionHandlerClient; 38 class WebRTCPeerConnectionHandlerClient;
39 } 39 }
40 40
41 namespace content { 41 namespace content {
42 42
43 class IpcNetworkManager; 43 class IpcNetworkManager;
44 class IpcPacketSocketFactory; 44 class IpcPacketSocketFactory;
45 class WebRtcAudioDeviceImpl; 45 class WebRtcAudioDeviceImpl;
46 46
(...skipping 21 matching lines...) Expand all
68 CreateLocalMediaStream(const std::string& label); 68 CreateLocalMediaStream(const std::string& label);
69 69
70 // Asks the PeerConnection factory to create a Local VideoTrack object. 70 // Asks the PeerConnection factory to create a Local VideoTrack object.
71 virtual scoped_refptr<webrtc::VideoTrackInterface> CreateLocalVideoTrack( 71 virtual scoped_refptr<webrtc::VideoTrackInterface> CreateLocalVideoTrack(
72 const std::string& id, 72 const std::string& id,
73 webrtc::VideoTrackSourceInterface* source); 73 webrtc::VideoTrackSourceInterface* source);
74 74
75 // Asks the libjingle PeerConnection factory to create a libjingle 75 // Asks the libjingle PeerConnection factory to create a libjingle
76 // PeerConnection object. 76 // PeerConnection object.
77 // The PeerConnection object is owned by PeerConnectionHandler. 77 // The PeerConnection object is owned by PeerConnectionHandler.
78 virtual scoped_refptr<webrtc::PeerConnectionInterface> 78 virtual scoped_refptr<webrtc::PeerConnectionInterface> CreatePeerConnection(
79 CreatePeerConnection( 79 const webrtc::PeerConnectionInterface::RTCConfiguration& config,
80 const webrtc::PeerConnectionInterface::RTCConfiguration& config, 80 blink::WebLocalFrame* web_frame,
81 blink::WebFrame* web_frame, 81 webrtc::PeerConnectionObserver* observer);
82 webrtc::PeerConnectionObserver* observer);
83 82
84 // Creates a libjingle representation of a Session description. Used by a 83 // Creates a libjingle representation of a Session description. Used by a
85 // RTCPeerConnectionHandler instance. 84 // RTCPeerConnectionHandler instance.
86 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription( 85 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription(
87 const std::string& type, 86 const std::string& type,
88 const std::string& sdp, 87 const std::string& sdp,
89 webrtc::SdpParseError* error); 88 webrtc::SdpParseError* error);
90 89
91 // Creates a libjingle representation of an ice candidate. 90 // Creates a libjingle representation of an ice candidate.
92 virtual webrtc::IceCandidateInterface* CreateIceCandidate( 91 virtual webrtc::IceCandidateInterface* CreateIceCandidate(
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 base::Thread chrome_worker_thread_; 154 base::Thread chrome_worker_thread_;
156 155
157 SEQUENCE_CHECKER(sequence_checker_); 156 SEQUENCE_CHECKER(sequence_checker_);
158 157
159 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); 158 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory);
160 }; 159 };
161 160
162 } // namespace content 161 } // namespace content
163 162
164 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ 163 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698