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

Side by Side Diff: remoting/client/chromoting_client.h

Issue 1545723002: Use std::move() instead of .Pass() in remoting/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass_host
Patch Set: Created 4 years, 12 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
« no previous file with comments | « remoting/client/audio_player_unittest.cc ('k') | remoting/client/chromoting_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // ChromotingClient is the controller for the Client implementation. 5 // ChromotingClient is the controller for the Client implementation.
6 6
7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_ 7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_
8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H_ 8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // |client_context|, |user_interface| and |video_renderer| must outlive the 48 // |client_context|, |user_interface| and |video_renderer| must outlive the
49 // client. |audio_player| may be null, in which case audio will not be 49 // client. |audio_player| may be null, in which case audio will not be
50 // requested. 50 // requested.
51 ChromotingClient(ClientContext* client_context, 51 ChromotingClient(ClientContext* client_context,
52 ClientUserInterface* user_interface, 52 ClientUserInterface* user_interface,
53 VideoRenderer* video_renderer, 53 VideoRenderer* video_renderer,
54 scoped_ptr<AudioPlayer> audio_player); 54 scoped_ptr<AudioPlayer> audio_player);
55 55
56 ~ChromotingClient() override; 56 ~ChromotingClient() override;
57 57
58 void set_protocol_config( 58 void set_protocol_config(scoped_ptr<protocol::CandidateSessionConfig> config);
59 scoped_ptr<protocol::CandidateSessionConfig> config) {
60 protocol_config_ = config.Pass();
61 }
62 59
63 // Used to set fake/mock objects for tests which use the ChromotingClient. 60 // Used to set fake/mock objects for tests which use the ChromotingClient.
64 void SetConnectionToHostForTests( 61 void SetConnectionToHostForTests(
65 scoped_ptr<protocol::ConnectionToHost> connection_to_host); 62 scoped_ptr<protocol::ConnectionToHost> connection_to_host);
66 63
67 // Start the client. Must be called on the main thread. |signal_strategy| 64 // Start the client. Must be called on the main thread. |signal_strategy|
68 // must outlive the client. 65 // must outlive the client.
69 void Start(SignalStrategy* signal_strategy, 66 void Start(SignalStrategy* signal_strategy,
70 scoped_ptr<protocol::Authenticator> authenticator, 67 scoped_ptr<protocol::Authenticator> authenticator,
71 scoped_refptr<protocol::TransportContext> transport_context, 68 scoped_refptr<protocol::TransportContext> transport_context,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 139
143 // Record the statistics of the connection. 140 // Record the statistics of the connection.
144 protocol::PerformanceTracker perf_tracker_; 141 protocol::PerformanceTracker perf_tracker_;
145 142
146 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); 143 DISALLOW_COPY_AND_ASSIGN(ChromotingClient);
147 }; 144 };
148 145
149 } // namespace remoting 146 } // namespace remoting
150 147
151 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ 148 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_
OLDNEW
« no previous file with comments | « remoting/client/audio_player_unittest.cc ('k') | remoting/client/chromoting_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698