OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 BOUNDED_FILE_NET_LOG_OBSERVER_H_ | 5 #ifndef BOUNDED_FILE_NET_LOG_OBSERVER_H_ |
6 #define BOUNDED_FILE_NET_LOG_OBSERVER_H_ | 6 #define BOUNDED_FILE_NET_LOG_OBSERVER_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/files/scoped_file.h" | 11 #include "base/files/scoped_file.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
16 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
17 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
| 18 #include "net/base/net_export.h" |
18 #include "net/log/net_log.h" | 19 #include "net/log/net_log.h" |
19 #include "net/log/net_log_capture_mode.h" | 20 #include "net/log/net_log_capture_mode.h" |
20 | 21 |
21 namespace base { | 22 namespace base { |
22 class DictionaryValue; | 23 class DictionaryValue; |
23 class Value; | 24 class Value; |
24 } // namespace base | 25 } // namespace base |
25 | 26 |
26 namespace net { | 27 namespace net { |
27 | 28 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // thread is safe because the FileWriter object will be alive until the | 127 // thread is safe because the FileWriter object will be alive until the |
127 // observer's destruction. | 128 // observer's destruction. |
128 FileWriter* file_writer_; | 129 FileWriter* file_writer_; |
129 | 130 |
130 DISALLOW_COPY_AND_ASSIGN(BoundedFileNetLogObserver); | 131 DISALLOW_COPY_AND_ASSIGN(BoundedFileNetLogObserver); |
131 }; | 132 }; |
132 | 133 |
133 } // namespace net | 134 } // namespace net |
134 | 135 |
135 #endif // BOUNDED_FILE_NET_LOG_OBSERVER_H_ | 136 #endif // BOUNDED_FILE_NET_LOG_OBSERVER_H_ |
OLD | NEW |