Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: chrome/browser/net/net_log_temp_file.h

Issue 1079163007: net_log_logger_ replaced with write_to_file_observer_ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: net_log_logger_ replaced with write_to_file_observer_ Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/net/chrome_net_log.cc ('k') | chrome/browser/net/net_log_temp_file.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_net_log.cc ('k') | chrome/browser/net/net_log_temp_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698