OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ssl/channel_id_store.h" | 5 #include "net/ssl/channel_id_store.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "crypto/ec_private_key.h" | 9 #include "crypto/ec_private_key.h" |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 return *this; | 32 return *this; |
33 server_identifier_ = other.server_identifier_; | 33 server_identifier_ = other.server_identifier_; |
34 creation_time_ = other.creation_time_; | 34 creation_time_ = other.creation_time_; |
35 if (other.key_) | 35 if (other.key_) |
36 key_ = other.key_->Copy(); | 36 key_ = other.key_->Copy(); |
37 return *this; | 37 return *this; |
38 } | 38 } |
39 | 39 |
40 ChannelIDStore::ChannelID::~ChannelID() {} | 40 ChannelIDStore::ChannelID::~ChannelID() {} |
41 | 41 |
| 42 ChannelIDStore::~ChannelIDStore() { |
| 43 DCHECK_CALLED_ON_VALID_THREAD(thread_checker_); |
| 44 } |
| 45 |
42 void ChannelIDStore::InitializeFrom(const ChannelIDList& list) { | 46 void ChannelIDStore::InitializeFrom(const ChannelIDList& list) { |
43 for (ChannelIDList::const_iterator i = list.begin(); i != list.end(); | 47 for (ChannelIDList::const_iterator i = list.begin(); i != list.end(); |
44 ++i) { | 48 ++i) { |
45 SetChannelID(std::unique_ptr<ChannelID>(new ChannelID(*i))); | 49 SetChannelID(std::unique_ptr<ChannelID>(new ChannelID(*i))); |
46 } | 50 } |
47 } | 51 } |
48 | 52 |
49 } // namespace net | 53 } // namespace net |
OLD | NEW |