| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "remoting/client/chromoting_session.h" | 5 #include "remoting/client/chromoting_session.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 const int kPerfStatsIntervalMs = 60000; | 43 const int kPerfStatsIntervalMs = 60000; |
| 44 | 44 |
| 45 } // namespace | 45 } // namespace |
| 46 | 46 |
| 47 ChromotingSession::ChromotingSession( | 47 ChromotingSession::ChromotingSession( |
| 48 base::WeakPtr<ChromotingSession::Delegate> delegate, | 48 base::WeakPtr<ChromotingSession::Delegate> delegate, |
| 49 std::unique_ptr<protocol::CursorShapeStub> cursor_shape_stub, | 49 std::unique_ptr<protocol::CursorShapeStub> cursor_shape_stub, |
| 50 std::unique_ptr<protocol::VideoRenderer> video_renderer, | 50 std::unique_ptr<protocol::VideoRenderer> video_renderer, |
| 51 base::WeakPtr<protocol::AudioStub> audio_player, | 51 base::WeakPtr<protocol::AudioStub> audio_player, |
| 52 const ConnectToHostInfo& info, | 52 const ConnectToHostInfo& info, |
| 53 protocol::ClientAuthenticationConfig& client_auth_config) | 53 const protocol::ClientAuthenticationConfig& client_auth_config) |
| 54 : delegate_(delegate), | 54 : delegate_(delegate), |
| 55 connection_info_(info), | 55 connection_info_(info), |
| 56 client_auth_config_(client_auth_config), | 56 client_auth_config_(client_auth_config), |
| 57 cursor_shape_stub_(std::move(cursor_shape_stub)), | 57 cursor_shape_stub_(std::move(cursor_shape_stub)), |
| 58 video_renderer_(std::move(video_renderer)), | 58 video_renderer_(std::move(video_renderer)), |
| 59 audio_player_(audio_player), | 59 audio_player_(audio_player), |
| 60 capabilities_(info.capabilities), | 60 capabilities_(info.capabilities), |
| 61 weak_factory_(this) { | 61 weak_factory_(this) { |
| 62 runtime_ = ChromotingClientRuntime::GetInstance(); | 62 runtime_ = ChromotingClientRuntime::GetInstance(); |
| 63 DCHECK(runtime_->ui_task_runner()->BelongsToCurrentThread()); | 63 DCHECK(runtime_->ui_task_runner()->BelongsToCurrentThread()); |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 video_renderer_.reset(); | 449 video_renderer_.reset(); |
| 450 signaling_.reset(); | 450 signaling_.reset(); |
| 451 perf_tracker_.reset(); | 451 perf_tracker_.reset(); |
| 452 client_context_.reset(); | 452 client_context_.reset(); |
| 453 cursor_shape_stub_.reset(); | 453 cursor_shape_stub_.reset(); |
| 454 | 454 |
| 455 weak_factory_.InvalidateWeakPtrs(); | 455 weak_factory_.InvalidateWeakPtrs(); |
| 456 } | 456 } |
| 457 | 457 |
| 458 } // namespace remoting | 458 } // namespace remoting |
| OLD | NEW |