| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef NET_QUIC_CRYPTO_SOURCE_ADDRESS_TOKEN_H_ | 5 #ifndef NET_QUIC_CRYPTO_SOURCE_ADDRESS_TOKEN_H_ |
| 6 #define NET_QUIC_CRYPTO_SOURCE_ADDRESS_TOKEN_H_ | 6 #define NET_QUIC_CRYPTO_SOURCE_ADDRESS_TOKEN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 ip_ = ip.as_string(); | 34 ip_ = ip.as_string(); |
| 35 } | 35 } |
| 36 | 36 |
| 37 void set_timestamp(int64 timestamp) { | 37 void set_timestamp(int64 timestamp) { |
| 38 timestamp_ = timestamp; | 38 timestamp_ = timestamp; |
| 39 } | 39 } |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 std::string ip_; | 42 std::string ip_; |
| 43 int64 timestamp_; | 43 int64 timestamp_; |
| 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(SourceAddressToken); |
| 44 }; | 46 }; |
| 45 | 47 |
| 46 } // namespace net | 48 } // namespace net |
| 47 | 49 |
| 48 #endif // NET_QUIC_CRYPTO_SOURCE_ADDRESS_TOKEN_H_ | 50 #endif // NET_QUIC_CRYPTO_SOURCE_ADDRESS_TOKEN_H_ |
| OLD | NEW |