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

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

Issue 2858813002: [Chromoting] Use ProcessStatsSender in host process
Patch Set: Created 3 years, 7 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_FAKE_CONNECTION_TO_CLIENT_H_ 5 #ifndef REMOTING_PROTOCOL_FAKE_CONNECTION_TO_CLIENT_H_
6 #define REMOTING_PROTOCOL_FAKE_CONNECTION_TO_CLIENT_H_ 6 #define REMOTING_PROTOCOL_FAKE_CONNECTION_TO_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 EventHandler* event_handler() { return event_handler_; } 80 EventHandler* event_handler() { return event_handler_; }
81 ClipboardStub* clipboard_stub() { return clipboard_stub_; } 81 ClipboardStub* clipboard_stub() { return clipboard_stub_; }
82 HostStub* host_stub() { return host_stub_; } 82 HostStub* host_stub() { return host_stub_; }
83 InputStub* input_stub() { return input_stub_; } 83 InputStub* input_stub() { return input_stub_; }
84 VideoStub* video_stub() { return video_stub_; } 84 VideoStub* video_stub() { return video_stub_; }
85 VideoFeedbackStub* video_feedback_stub() { return video_feedback_stub_; } 85 VideoFeedbackStub* video_feedback_stub() { return video_feedback_stub_; }
86 86
87 bool is_connected() { return is_connected_; } 87 bool is_connected() { return is_connected_; }
88 ErrorCode disconnect_error() { return disconnect_error_; } 88 ErrorCode disconnect_error() { return disconnect_error_; }
89 89
90 ProcessStatsStub* stats_stub() override;
91 void set_stats_stub(ProcessStatsStub* stats_stub) {
92 stats_stub_ = stats_stub;
93 }
94
90 private: 95 private:
91 std::unique_ptr<Session> session_; 96 std::unique_ptr<Session> session_;
92 EventHandler* event_handler_ = nullptr; 97 EventHandler* event_handler_ = nullptr;
93 98
94 base::WeakPtr<FakeVideoStream> last_video_stream_; 99 base::WeakPtr<FakeVideoStream> last_video_stream_;
95 100
96 ClientStub* client_stub_ = nullptr; 101 ClientStub* client_stub_ = nullptr;
97 102
103 ProcessStatsStub* stats_stub_ = nullptr;
104
98 ClipboardStub* clipboard_stub_ = nullptr; 105 ClipboardStub* clipboard_stub_ = nullptr;
99 HostStub* host_stub_ = nullptr; 106 HostStub* host_stub_ = nullptr;
100 InputStub* input_stub_ = nullptr; 107 InputStub* input_stub_ = nullptr;
101 VideoStub* video_stub_ = nullptr; 108 VideoStub* video_stub_ = nullptr;
102 VideoFeedbackStub* video_feedback_stub_ = nullptr; 109 VideoFeedbackStub* video_feedback_stub_ = nullptr;
103 110
104 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_; 111 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_;
105 112
106 bool is_connected_ = true; 113 bool is_connected_ = true;
107 ErrorCode disconnect_error_ = OK; 114 ErrorCode disconnect_error_ = OK;
108 115
109 DISALLOW_COPY_AND_ASSIGN(FakeConnectionToClient); 116 DISALLOW_COPY_AND_ASSIGN(FakeConnectionToClient);
110 }; 117 };
111 118
112 } // namespace protocol 119 } // namespace protocol
113 } // namespace remoting 120 } // namespace remoting
114 121
115 #endif // REMOTING_PROTOCOL_FAKE_CONNECTION_TO_CLIENT_H_ 122 #endif // REMOTING_PROTOCOL_FAKE_CONNECTION_TO_CLIENT_H_
OLDNEW
« no previous file with comments | « remoting/protocol/connection_to_client.h ('k') | remoting/protocol/fake_connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698