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

Side by Side Diff: net/quic/crypto/quic_crypto_server_config.cc

Issue 144033006: Export SCIDs, QUIC secret seed names and orbits to internal server (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "net/quic/crypto/quic_crypto_server_config.h" 5 #include "net/quic/crypto/quic_crypto_server_config.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <algorithm> 8 #include <algorithm>
9 9
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 409
410 configs_.swap(new_configs); 410 configs_.swap(new_configs);
411 SelectNewPrimaryConfig(now); 411 SelectNewPrimaryConfig(now);
412 DCHECK(primary_config_); 412 DCHECK(primary_config_);
413 DCHECK_EQ(configs_.find(primary_config_->id)->second, primary_config_); 413 DCHECK_EQ(configs_.find(primary_config_->id)->second, primary_config_);
414 } 414 }
415 415
416 return ok; 416 return ok;
417 } 417 }
418 418
419 void QuicCryptoServerConfig::GetConfigIds(vector<string>* scids) const {
420 base::AutoLock locked(configs_lock_);
421 for (ConfigMap::const_iterator it = configs_.begin();
422 it != configs_.end(); ++it) {
423 scids->push_back(it->first);
424 }
425 }
426
419 void QuicCryptoServerConfig::ValidateClientHello( 427 void QuicCryptoServerConfig::ValidateClientHello(
420 const CryptoHandshakeMessage& client_hello, 428 const CryptoHandshakeMessage& client_hello,
421 IPEndPoint client_ip, 429 IPEndPoint client_ip,
422 const QuicClock* clock, 430 const QuicClock* clock,
423 ValidateClientHelloResultCallback* done_cb) const { 431 ValidateClientHelloResultCallback* done_cb) const {
424 const QuicWallTime now(clock->WallNow()); 432 const QuicWallTime now(clock->WallNow());
425 433
426 ValidateClientHelloResultCallback::Result* result = 434 ValidateClientHelloResultCallback::Result* result =
427 new ValidateClientHelloResultCallback::Result( 435 new ValidateClientHelloResultCallback::Result(
428 client_hello, client_ip, now); 436 client_hello, client_ip, now);
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 1310
1303 QuicCryptoServerConfig::Config::Config() 1311 QuicCryptoServerConfig::Config::Config()
1304 : channel_id_enabled(false), 1312 : channel_id_enabled(false),
1305 is_primary(false), 1313 is_primary(false),
1306 primary_time(QuicWallTime::Zero()), 1314 primary_time(QuicWallTime::Zero()),
1307 priority(0) {} 1315 priority(0) {}
1308 1316
1309 QuicCryptoServerConfig::Config::~Config() { STLDeleteElements(&key_exchanges); } 1317 QuicCryptoServerConfig::Config::~Config() { STLDeleteElements(&key_exchanges); }
1310 1318
1311 } // namespace net 1319 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698