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

Unified Diff: chrome/browser/ui/webui/net_internals/net_internals_ui.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/net_internals/net_internals_ui.cc
diff --git a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
index 06878f462965e5e3ad518161884b55108d784adc..92fa2f1df6016bd3b57d3505df5496858d538cb9 100644
--- a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
+++ b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
@@ -75,6 +75,9 @@
#include "net/http/http_server_properties.h"
#include "net/http/http_stream_factory.h"
#include "net/http/transport_security_state.h"
+#include "net/log/net_log.h"
+#include "net/log/net_log_capture_mode.h"
+#include "net/log/net_log_entry.h"
#include "net/log/net_log_util.h"
#include "net/log/write_to_file_net_log_observer.h"
#include "net/proxy/proxy_service.h"
@@ -306,7 +309,7 @@ class NetInternalsMessageHandler::IOThreadImpl
void OnSetCaptureMode(const base::ListValue* list);
// NetLog::ThreadSafeObserver implementation:
- void OnAddEntry(const net::NetLog::Entry& entry) override;
+ void OnAddEntry(const net::NetLogEntry& entry) override;
// Helper that calls g_browser.receive in the renderer, passing in |command|
// and |arg|. If the renderer is displaying a log file, the message will be
@@ -1098,7 +1101,7 @@ void NetInternalsMessageHandler::IOThreadImpl::OnSetCaptureMode(
// Note that unlike other methods of IOThreadImpl, this function
// can be called from ANY THREAD.
void NetInternalsMessageHandler::IOThreadImpl::OnAddEntry(
- const net::NetLog::Entry& entry) {
+ const net::NetLogEntry& entry) {
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
base::Bind(&IOThreadImpl::AddEntryToQueue, this,
base::Passed(entry.ToValue())));

Powered by Google App Engine
This is Rietveld 408576698