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

Side by Side Diff: remoting/protocol/webrtc_connection_to_host.h

Issue 2200273003: Enable video stats reporting when using WebRTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address feedback Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ 5 #ifndef REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_
6 #define REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ 6 #define REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 scoped_refptr<webrtc::MediaStreamInterface> stream) override; 62 scoped_refptr<webrtc::MediaStreamInterface> stream) override;
63 void OnWebrtcTransportMediaStreamRemoved( 63 void OnWebrtcTransportMediaStreamRemoved(
64 scoped_refptr<webrtc::MediaStreamInterface> stream) override; 64 scoped_refptr<webrtc::MediaStreamInterface> stream) override;
65 65
66 // ChannelDispatcherBase::EventHandler interface. 66 // ChannelDispatcherBase::EventHandler interface.
67 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; 67 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override;
68 void OnChannelClosed(ChannelDispatcherBase* channel_dispatcher) override; 68 void OnChannelClosed(ChannelDispatcherBase* channel_dispatcher) override;
69 69
70 void NotifyIfChannelsReady(); 70 void NotifyIfChannelsReady();
71 71
72 WebrtcVideoRendererAdapter* GetOrCreateVideoAdapter(const std::string& label);
73
72 void CloseChannels(); 74 void CloseChannels();
73 75
76 void OnFrameRendered(uint32_t frame_id,
77 base::TimeTicks event_timestamp,
78 base::TimeTicks frame_rendered_time);
79
74 void SetState(State state, ErrorCode error); 80 void SetState(State state, ErrorCode error);
75 81
76 HostEventCallback* event_callback_ = nullptr; 82 HostEventCallback* event_callback_ = nullptr;
77 83
78 // Stub for incoming messages. 84 // Stub for incoming messages.
79 ClientStub* client_stub_ = nullptr; 85 ClientStub* client_stub_ = nullptr;
80 VideoRenderer* video_renderer_ = nullptr; 86 VideoRenderer* video_renderer_ = nullptr;
81 ClipboardStub* clipboard_stub_ = nullptr; 87 ClipboardStub* clipboard_stub_ = nullptr;
82 88
83 std::unique_ptr<Session> session_; 89 std::unique_ptr<Session> session_;
(...skipping 11 matching lines...) Expand all
95 ErrorCode error_ = OK; 101 ErrorCode error_ = OK;
96 102
97 private: 103 private:
98 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToHost); 104 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToHost);
99 }; 105 };
100 106
101 } // namespace protocol 107 } // namespace protocol
102 } // namespace remoting 108 } // namespace remoting
103 109
104 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ 110 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698