| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 WRITE_TO_FILE_NET_LOG_OBSERVER_H_ | 5 #ifndef WRITE_TO_FILE_NET_LOG_OBSERVER_H_ |
| 6 #define WRITE_TO_FILE_NET_LOG_OBSERVER_H_ | 6 #define WRITE_TO_FILE_NET_LOG_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 | 9 |
| 10 #include "base/files/scoped_file.h" | 10 #include "base/files/scoped_file.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
| 14 #include "net/log/net_log.h" | 14 #include "net/log/net_log.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class DictionaryValue; | |
| 18 class FilePath; | |
| 19 class Value; | 17 class Value; |
| 20 } | 18 } |
| 21 | 19 |
| 22 namespace net { | 20 namespace net { |
| 23 | 21 |
| 24 class URLRequestContext; | 22 class URLRequestContext; |
| 25 | 23 |
| 26 // WriteToFileNetLogObserver watches the NetLog event stream, and sends all | 24 // WriteToFileNetLogObserver watches the NetLog event stream, and sends all |
| 27 // entries to a file specified on creation. | 25 // entries to a file specified on creation. |
| 28 // | 26 // |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 84 |
| 87 // True if OnAddEntry() has been called at least once. | 85 // True if OnAddEntry() has been called at least once. |
| 88 bool added_events_; | 86 bool added_events_; |
| 89 | 87 |
| 90 DISALLOW_COPY_AND_ASSIGN(WriteToFileNetLogObserver); | 88 DISALLOW_COPY_AND_ASSIGN(WriteToFileNetLogObserver); |
| 91 }; | 89 }; |
| 92 | 90 |
| 93 } // namespace net | 91 } // namespace net |
| 94 | 92 |
| 95 #endif // WRITE_TO_FILE_NET_LOG_OBSERVER_H_ | 93 #endif // WRITE_TO_FILE_NET_LOG_OBSERVER_H_ |
| OLD | NEW |