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 #ifndef NET_BASE_CAPTURING_NET_LOG_H_ | 5 #ifndef NET_BASE_CAPTURING_NET_LOG_H_ |
6 #define NET_BASE_CAPTURING_NET_LOG_H_ | 6 #define NET_BASE_CAPTURING_NET_LOG_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/atomicops.h" | 11 #include "base/atomicops.h" |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "base/time.h" | 17 #include "base/time/time.h" |
18 #include "net/base/net_log.h" | 18 #include "net/base/net_log.h" |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class DictionaryValue; | 21 class DictionaryValue; |
22 } | 22 } |
23 | 23 |
24 namespace net { | 24 namespace net { |
25 | 25 |
26 // CapturingNetLog is a NetLog which instantiates Observer that saves messages | 26 // CapturingNetLog is a NetLog which instantiates Observer that saves messages |
27 // to a bounded buffer. It is intended for testing only, and is part of the | 27 // to a bounded buffer. It is intended for testing only, and is part of the |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 private: | 150 private: |
151 CapturingNetLog capturing_net_log_; | 151 CapturingNetLog capturing_net_log_; |
152 const BoundNetLog net_log_; | 152 const BoundNetLog net_log_; |
153 | 153 |
154 DISALLOW_COPY_AND_ASSIGN(CapturingBoundNetLog); | 154 DISALLOW_COPY_AND_ASSIGN(CapturingBoundNetLog); |
155 }; | 155 }; |
156 | 156 |
157 } // namespace net | 157 } // namespace net |
158 | 158 |
159 #endif // NET_BASE_CAPTURING_NET_LOG_H_ | 159 #endif // NET_BASE_CAPTURING_NET_LOG_H_ |
OLD | NEW |