| 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 NET_LOG_BOUNDED_FILE_NET_LOG_OBSERVER_H_ |
| 6 #define BOUNDED_FILE_NET_LOG_OBSERVER_H_ | 6 #define NET_LOG_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" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // The use of base::Unretained with |file_writer_| to post tasks to the file | 125 // The use of base::Unretained with |file_writer_| to post tasks to the file |
| 126 // thread is safe because the FileWriter object will be alive until the | 126 // thread is safe because the FileWriter object will be alive until the |
| 127 // observer's destruction. | 127 // observer's destruction. |
| 128 FileWriter* file_writer_; | 128 FileWriter* file_writer_; |
| 129 | 129 |
| 130 DISALLOW_COPY_AND_ASSIGN(BoundedFileNetLogObserver); | 130 DISALLOW_COPY_AND_ASSIGN(BoundedFileNetLogObserver); |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace net | 133 } // namespace net |
| 134 | 134 |
| 135 #endif // BOUNDED_FILE_NET_LOG_OBSERVER_H_ | 135 #endif // NET_LOG_BOUNDED_FILE_NET_LOG_OBSERVER_H_ |
| OLD | NEW |