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

Side by Side Diff: content/renderer/media/webrtc/mock_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_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // A mock factory for creating different objects for 118 // A mock factory for creating different objects for
119 // RTC PeerConnections. 119 // RTC PeerConnections.
120 class MockPeerConnectionDependencyFactory 120 class MockPeerConnectionDependencyFactory
121 : public PeerConnectionDependencyFactory { 121 : public PeerConnectionDependencyFactory {
122 public: 122 public:
123 MockPeerConnectionDependencyFactory(); 123 MockPeerConnectionDependencyFactory();
124 ~MockPeerConnectionDependencyFactory() override; 124 ~MockPeerConnectionDependencyFactory() override;
125 125
126 scoped_refptr<webrtc::PeerConnectionInterface> CreatePeerConnection( 126 scoped_refptr<webrtc::PeerConnectionInterface> CreatePeerConnection(
127 const webrtc::PeerConnectionInterface::RTCConfiguration& config, 127 const webrtc::PeerConnectionInterface::RTCConfiguration& config,
128 blink::WebFrame* frame, 128 blink::WebLocalFrame* frame,
129 webrtc::PeerConnectionObserver* observer) override; 129 webrtc::PeerConnectionObserver* observer) override;
130 scoped_refptr<webrtc::VideoTrackSourceInterface> CreateVideoTrackSourceProxy( 130 scoped_refptr<webrtc::VideoTrackSourceInterface> CreateVideoTrackSourceProxy(
131 webrtc::VideoTrackSourceInterface* source) override; 131 webrtc::VideoTrackSourceInterface* source) override;
132 scoped_refptr<webrtc::MediaStreamInterface> CreateLocalMediaStream( 132 scoped_refptr<webrtc::MediaStreamInterface> CreateLocalMediaStream(
133 const std::string& label) override; 133 const std::string& label) override;
134 scoped_refptr<webrtc::VideoTrackInterface> CreateLocalVideoTrack( 134 scoped_refptr<webrtc::VideoTrackInterface> CreateLocalVideoTrack(
135 const std::string& id, 135 const std::string& id,
136 webrtc::VideoTrackSourceInterface* source) override; 136 webrtc::VideoTrackSourceInterface* source) override;
137 webrtc::SessionDescriptionInterface* CreateSessionDescription( 137 webrtc::SessionDescriptionInterface* CreateSessionDescription(
138 const std::string& type, 138 const std::string& type,
(...skipping 15 matching lines...) Expand all
154 private: 154 private:
155 base::Thread signaling_thread_; 155 base::Thread signaling_thread_;
156 bool fail_to_create_session_description_ = false; 156 bool fail_to_create_session_description_ = false;
157 157
158 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionDependencyFactory); 158 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionDependencyFactory);
159 }; 159 };
160 160
161 } // namespace content 161 } // namespace content
162 162
163 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY _H_ 163 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698