OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_NET_NET_LOG_TEMP_FILE_H_ | 5 #ifndef CHROME_BROWSER_NET_NET_LOG_TEMP_FILE_H_ |
6 #define CHROME_BROWSER_NET_NET_LOG_TEMP_FILE_H_ | 6 #define CHROME_BROWSER_NET_NET_LOG_TEMP_FILE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 144 |
145 State state_; // Current state of NetLogTempFile. | 145 State state_; // Current state of NetLogTempFile. |
146 LogType log_type_; // Type of current log file on disk. | 146 LogType log_type_; // Type of current log file on disk. |
147 | 147 |
148 // Name of the file. It defaults to chrome-net-export-log.json, but can be | 148 // Name of the file. It defaults to chrome-net-export-log.json, but can be |
149 // overwritten by unit tests. | 149 // overwritten by unit tests. |
150 base::FilePath::StringType log_filename_; | 150 base::FilePath::StringType log_filename_; |
151 | 151 |
152 base::FilePath log_path_; // base::FilePath to the temporary file. | 152 base::FilePath log_path_; // base::FilePath to the temporary file. |
153 | 153 |
154 // |net_log_logger_| watches the NetLog event stream, and sends all entries to | 154 // |write_to_file_observer_| watches the NetLog event stream, and |
155 // the file created in StartNetLog(). | 155 // sends all entries to the file created in StartNetLog(). |
156 scoped_ptr<net::WriteToFileNetLogObserver> net_log_logger_; | 156 scoped_ptr<net::WriteToFileNetLogObserver> write_to_file_observer_; |
157 | 157 |
158 // The |chrome_net_log_| is owned by the browser process, cached here to avoid | 158 // The |chrome_net_log_| is owned by the browser process, cached here to avoid |
159 // using global (g_browser_process). | 159 // using global (g_browser_process). |
160 ChromeNetLog* chrome_net_log_; | 160 ChromeNetLog* chrome_net_log_; |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(NetLogTempFile); | 162 DISALLOW_COPY_AND_ASSIGN(NetLogTempFile); |
163 }; | 163 }; |
164 | 164 |
165 #endif // CHROME_BROWSER_NET_NET_LOG_TEMP_FILE_H_ | 165 #endif // CHROME_BROWSER_NET_NET_LOG_TEMP_FILE_H_ |
OLD | NEW |