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

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

Issue 2281783002: Changes client_token to be client_auth_token. (Closed)
Patch Set: 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/logging.h" 5 #include "blimp/common/logging.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 } 192 }
193 } 193 }
194 194
195 // Logs fields from PROTOCOL_CONTROL messages. 195 // Logs fields from PROTOCOL_CONTROL messages.
196 void ExtractProtocolControlMessageFields(const BlimpMessage& message, 196 void ExtractProtocolControlMessageFields(const BlimpMessage& message,
197 LogFields* output) { 197 LogFields* output) {
198 switch (message.protocol_control().connection_message_case()) { 198 switch (message.protocol_control().connection_message_case()) {
199 case ProtocolControlMessage::kStartConnection: 199 case ProtocolControlMessage::kStartConnection:
200 AddField("subtype", "START_CONNECTION", output); 200 AddField("subtype", "START_CONNECTION", output);
201 AddField("client_token", 201 AddField("client_token",
202 message.protocol_control().start_connection().client_token(), 202 message.protocol_control().start_connection().client_auth_token() ,
203 output); 203 output);
204 AddField("protocol_version", 204 AddField("protocol_version",
205 message.protocol_control().start_connection().protocol_version(), 205 message.protocol_control().start_connection().protocol_version(),
206 output); 206 output);
207 break; 207 break;
208 case ProtocolControlMessage::kCheckpointAck: 208 case ProtocolControlMessage::kCheckpointAck:
209 AddField("subtype", "CHECKPOINT_ACK", output); 209 AddField("subtype", "CHECKPOINT_ACK", output);
210 AddField("checkpoint_id", 210 AddField("checkpoint_id",
211 message.protocol_control().checkpoint_ack().checkpoint_id(), 211 message.protocol_control().checkpoint_ack().checkpoint_id(),
212 output); 212 output);
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 for (size_t i = 0; i < fields.size(); ++i) { 400 for (size_t i = 0; i < fields.size(); ++i) {
401 out << fields[i].first << "=" << fields[i].second 401 out << fields[i].first << "=" << fields[i].second
402 << (i != fields.size() - 1 ? " " : ""); 402 << (i != fields.size() - 1 ? " " : "");
403 } 403 }
404 out << ">"; 404 out << ">";
405 405
406 return out; 406 return out;
407 } 407 }
408 408
409 } // namespace blimp 409 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698