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

Side by Side Diff: net/http/http_response_info.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 #include "net/http/http_response_info.h" 5 #include "net/http/http_response_info.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/pickle.h" 8 #include "base/pickle.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "net/base/auth.h" 10 #include "net/base/auth.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 flags |= RESPONSE_INFO_HAS_SIGNED_CERTIFICATE_TIMESTAMPS; 310 flags |= RESPONSE_INFO_HAS_SIGNED_CERTIFICATE_TIMESTAMPS;
311 311
312 pickle->WriteInt(flags); 312 pickle->WriteInt(flags);
313 pickle->WriteInt64(request_time.ToInternalValue()); 313 pickle->WriteInt64(request_time.ToInternalValue());
314 pickle->WriteInt64(response_time.ToInternalValue()); 314 pickle->WriteInt64(response_time.ToInternalValue());
315 315
316 net::HttpResponseHeaders::PersistOptions persist_options = 316 net::HttpResponseHeaders::PersistOptions persist_options =
317 net::HttpResponseHeaders::PERSIST_RAW; 317 net::HttpResponseHeaders::PERSIST_RAW;
318 318
319 if (skip_transient_headers) { 319 if (skip_transient_headers) {
320 persist_options = 320 persist_options = net::HttpResponseHeaders::PERSIST_SANS_COOKIES |
321 net::HttpResponseHeaders::PERSIST_SANS_COOKIES | 321 net::HttpResponseHeaders::PERSIST_SANS_CHALLENGES |
322 net::HttpResponseHeaders::PERSIST_SANS_CHALLENGES | 322 net::HttpResponseHeaders::PERSIST_SANS_HOP_BY_HOP |
323 net::HttpResponseHeaders::PERSIST_SANS_HOP_BY_HOP | 323 net::HttpResponseHeaders::PERSIST_SANS_NON_CACHEABLE |
324 net::HttpResponseHeaders::PERSIST_SANS_NON_CACHEABLE | 324 net::HttpResponseHeaders::PERSIST_SANS_RANGES |
325 net::HttpResponseHeaders::PERSIST_SANS_RANGES | 325 net::HttpResponseHeaders::PERSIST_SANS_SECURITY_STATE;
326 net::HttpResponseHeaders::PERSIST_SANS_SECURITY_STATE;
327 } 326 }
328 327
329 headers->Persist(pickle, persist_options); 328 headers->Persist(pickle, persist_options);
330 329
331 if (ssl_info.is_valid()) { 330 if (ssl_info.is_valid()) {
332 ssl_info.cert->Persist(pickle); 331 ssl_info.cert->Persist(pickle);
333 pickle->WriteUInt32(ssl_info.cert_status); 332 pickle->WriteUInt32(ssl_info.cert_status);
334 if (ssl_info.security_bits != -1) 333 if (ssl_info.security_bits != -1)
335 pickle->WriteInt(ssl_info.security_bits); 334 pickle->WriteInt(ssl_info.security_bits);
336 if (ssl_info.connection_status != 0) 335 if (ssl_info.connection_status != 0)
337 pickle->WriteInt(ssl_info.connection_status); 336 pickle->WriteInt(ssl_info.connection_status);
338 if (!ssl_info.signed_certificate_timestamps.empty()) { 337 if (!ssl_info.signed_certificate_timestamps.empty()) {
339 pickle->WriteInt(ssl_info.signed_certificate_timestamps.size()); 338 pickle->WriteInt(ssl_info.signed_certificate_timestamps.size());
340 for (SignedCertificateTimestampAndStatusList::const_iterator it = 339 for (SignedCertificateTimestampAndStatusList::const_iterator it =
341 ssl_info.signed_certificate_timestamps.begin(); it != 340 ssl_info.signed_certificate_timestamps.begin();
342 ssl_info.signed_certificate_timestamps.end(); ++it) { 341 it != ssl_info.signed_certificate_timestamps.end();
342 ++it) {
343 it->sct->Persist(pickle); 343 it->sct->Persist(pickle);
344 pickle->WriteUInt16(it->status); 344 pickle->WriteUInt16(it->status);
345 } 345 }
346 } 346 }
347 } 347 }
348 348
349 if (vary_data.is_valid()) 349 if (vary_data.is_valid())
350 vary_data.Persist(pickle); 350 vary_data.Persist(pickle);
351 351
352 pickle->WriteString(socket_address.host()); 352 pickle->WriteString(socket_address.host());
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 case CONNECTION_INFO_QUIC1_SPDY3: 400 case CONNECTION_INFO_QUIC1_SPDY3:
401 return "quic/1+spdy/3"; 401 return "quic/1+spdy/3";
402 case NUM_OF_CONNECTION_INFOS: 402 case NUM_OF_CONNECTION_INFOS:
403 break; 403 break;
404 } 404 }
405 NOTREACHED(); 405 NOTREACHED();
406 return ""; 406 return "";
407 } 407 }
408 408
409 } // namespace net 409 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698