| OLD | NEW |
| 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/quic/core/crypto/quic_random.h" | 5 #include "net/quic/core/crypto/quic_random.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | |
| 8 #include "base/macros.h" | 7 #include "base/macros.h" |
| 9 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
| 10 #include "crypto/random.h" | 9 #include "crypto/random.h" |
| 11 #include "net/quic/platform/api/quic_bug_tracker.h" | 10 #include "net/quic/platform/api/quic_bug_tracker.h" |
| 12 | 11 |
| 13 namespace net { | 12 namespace net { |
| 14 | 13 |
| 15 namespace { | 14 namespace { |
| 16 | 15 |
| 17 class DefaultRandom : public QuicRandom { | 16 class DefaultRandom : public QuicRandom { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 } | 49 } |
| 51 | 50 |
| 52 } // namespace | 51 } // namespace |
| 53 | 52 |
| 54 // static | 53 // static |
| 55 QuicRandom* QuicRandom::GetInstance() { | 54 QuicRandom* QuicRandom::GetInstance() { |
| 56 return DefaultRandom::GetInstance(); | 55 return DefaultRandom::GetInstance(); |
| 57 } | 56 } |
| 58 | 57 |
| 59 } // namespace net | 58 } // namespace net |
| OLD | NEW |