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

Side by Side Diff: content/renderer/media/mock_peer_connection_impl.h

Issue 10703095: New PeerConnection handler in Chrome to support latest PeerConnection draft (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix code review issues found by Wei. Created 8 years, 4 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 (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 #ifndef CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 SessionDescriptionInterface* desc) OVERRIDE; 63 SessionDescriptionInterface* desc) OVERRIDE;
64 virtual void SetRemoteDescription(SetSessionDescriptionObserver* observer, 64 virtual void SetRemoteDescription(SetSessionDescriptionObserver* observer,
65 SessionDescriptionInterface* desc) OVERRIDE; 65 SessionDescriptionInterface* desc) OVERRIDE;
66 virtual bool UpdateIce(const IceServers& configuration, 66 virtual bool UpdateIce(const IceServers& configuration,
67 const MediaConstraintsInterface* constraints) OVERRIDE; 67 const MediaConstraintsInterface* constraints) OVERRIDE;
68 virtual bool AddIceCandidate(const IceCandidateInterface* candidate) OVERRIDE; 68 virtual bool AddIceCandidate(const IceCandidateInterface* candidate) OVERRIDE;
69 virtual IceState ice_state() OVERRIDE; 69 virtual IceState ice_state() OVERRIDE;
70 70
71 void AddRemoteStream(MediaStreamInterface* stream); 71 void AddRemoteStream(MediaStreamInterface* stream);
72 void SetReadyState(ReadyState state) { ready_state_ = state; } 72 void SetReadyState(ReadyState state) { ready_state_ = state; }
73 void SetIceState(IceState state) { ice_state_ = state; }
73 74
74 const std::string& stream_label() const { return stream_label_; } 75 const std::string& stream_label() const { return stream_label_; }
75 bool hint_audio() const { return hint_audio_; } 76 bool hint_audio() const { return hint_audio_; }
76 bool hint_video() const { return hint_video_; } 77 bool hint_video() const { return hint_video_; }
77 Action action() const { return action_; } 78 Action action() const { return action_; }
78 const std::string& description_sdp() const { return description_sdp_; } 79 const std::string& description_sdp() const { return description_sdp_; }
79 IceOptions ice_options() const { return ice_options_; } 80 IceOptions ice_options() const { return ice_options_; }
80 const std::string& sdp_mid() const { return sdp_mid_; } 81 const std::string& sdp_mid() const { return sdp_mid_; }
81 int sdp_mline_index() const { return sdp_mline_index_; } 82 int sdp_mline_index() const { return sdp_mline_index_; }
82 const std::string& ice_sdp() const { return ice_sdp_; } 83 const std::string& ice_sdp() const { return ice_sdp_; }
(...skipping 14 matching lines...) Expand all
97 scoped_ptr<webrtc::SessionDescriptionInterface> remote_desc_; 98 scoped_ptr<webrtc::SessionDescriptionInterface> remote_desc_;
98 bool hint_audio_; 99 bool hint_audio_;
99 bool hint_video_; 100 bool hint_video_;
100 Action action_; 101 Action action_;
101 std::string description_sdp_; 102 std::string description_sdp_;
102 IceOptions ice_options_; 103 IceOptions ice_options_;
103 std::string sdp_mid_; 104 std::string sdp_mid_;
104 int sdp_mline_index_; 105 int sdp_mline_index_;
105 std::string ice_sdp_; 106 std::string ice_sdp_;
106 ReadyState ready_state_; 107 ReadyState ready_state_;
108 IceState ice_state_;
107 109
108 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); 110 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl);
109 }; 111 };
110 112
111 } // namespace webrtc 113 } // namespace webrtc
112 114
113 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ 115 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698