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

Side by Side Diff: blimp/common/create_blimp_message.cc

Issue 2281783002: Changes client_token to be client_auth_token. (Closed)
Patch Set: Linting. Created 4 years, 3 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 | « blimp/common/create_blimp_message.h ('k') | blimp/common/create_blimp_message_unittest.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 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 #include "blimp/common/create_blimp_message.h" 5 #include "blimp/common/create_blimp_message.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "blimp/common/proto/blimp_message.pb.h" 10 #include "blimp/common/proto/blimp_message.pb.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 90
91 std::unique_ptr<BlimpMessage> CreateBlimpMessage( 91 std::unique_ptr<BlimpMessage> CreateBlimpMessage(
92 GeolocationMessage** geolocation_message) { 92 GeolocationMessage** geolocation_message) {
93 std::unique_ptr<BlimpMessage> output(new BlimpMessage); 93 std::unique_ptr<BlimpMessage> output(new BlimpMessage);
94 *geolocation_message = output->mutable_geolocation(); 94 *geolocation_message = output->mutable_geolocation();
95 return output; 95 return output;
96 } 96 }
97 97
98 std::unique_ptr<BlimpMessage> CreateStartConnectionMessage( 98 std::unique_ptr<BlimpMessage> CreateStartConnectionMessage(
99 const std::string& client_token, 99 const std::string& client_auth_token,
100 int protocol_version) { 100 int protocol_version) {
101 std::unique_ptr<BlimpMessage> output(new BlimpMessage); 101 std::unique_ptr<BlimpMessage> output(new BlimpMessage);
102 102
103 ProtocolControlMessage* control_message = output->mutable_protocol_control(); 103 ProtocolControlMessage* control_message = output->mutable_protocol_control();
104 control_message->mutable_start_connection(); 104 control_message->mutable_start_connection();
105 105
106 StartConnectionMessage* start_connection_message = 106 StartConnectionMessage* start_connection_message =
107 control_message->mutable_start_connection(); 107 control_message->mutable_start_connection();
108 start_connection_message->set_client_token(client_token); 108 start_connection_message->set_client_auth_token(client_auth_token);
109 start_connection_message->set_protocol_version(protocol_version); 109 start_connection_message->set_protocol_version(protocol_version);
110 110
111 return output; 111 return output;
112 } 112 }
113 113
114 std::unique_ptr<BlimpMessage> CreateCheckpointAckMessage( 114 std::unique_ptr<BlimpMessage> CreateCheckpointAckMessage(
115 int64_t checkpoint_id) { 115 int64_t checkpoint_id) {
116 std::unique_ptr<BlimpMessage> output(new BlimpMessage); 116 std::unique_ptr<BlimpMessage> output(new BlimpMessage);
117 117
118 ProtocolControlMessage* control_message = output->mutable_protocol_control(); 118 ProtocolControlMessage* control_message = output->mutable_protocol_control();
(...skipping 10 matching lines...) Expand all
129 129
130 ProtocolControlMessage* control_message = output->mutable_protocol_control(); 130 ProtocolControlMessage* control_message = output->mutable_protocol_control();
131 EndConnectionMessage* end_connection_message = 131 EndConnectionMessage* end_connection_message =
132 control_message->mutable_end_connection(); 132 control_message->mutable_end_connection();
133 end_connection_message->set_reason(reason); 133 end_connection_message->set_reason(reason);
134 134
135 return output; 135 return output;
136 } 136 }
137 137
138 } // namespace blimp 138 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/common/create_blimp_message.h ('k') | blimp/common/create_blimp_message_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698