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