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

Unified Diff: content/browser/loader/netlog_observer.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: content/browser/loader/netlog_observer.cc
diff --git a/content/browser/loader/netlog_observer.cc b/content/browser/loader/netlog_observer.cc
index 9424bc3c2ffea9c8737281c2a551f73b41543d03..2e920f669bcd508f4b13f316ffee591aea9581d7 100644
--- a/content/browser/loader/netlog_observer.cc
+++ b/content/browser/loader/netlog_observer.cc
@@ -13,8 +13,11 @@
#include "net/base/load_flags.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_util.h"
+#include "net/log/net_log_capture_mode.h"
+#include "net/log/net_log_entry.h"
#include "net/log/net_log_event_type.h"
#include "net/log/net_log_source_type.h"
+#include "net/log/net_log_with_source.h"
#include "net/spdy/spdy_header_block.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_netlog_params.h"
@@ -40,7 +43,7 @@ NetLogObserver::ResourceInfo* NetLogObserver::GetResourceInfo(uint32_t id) {
return NULL;
}
-void NetLogObserver::OnAddEntry(const net::NetLog::Entry& entry) {
+void NetLogObserver::OnAddEntry(const net::NetLogEntry& entry) {
DCHECK(io_thread_checker_.Get().get());
// The events that the Observer is interested in only occur on the IO thread.
@@ -51,7 +54,7 @@ void NetLogObserver::OnAddEntry(const net::NetLog::Entry& entry) {
OnAddURLRequestEntry(entry);
}
-void NetLogObserver::OnAddURLRequestEntry(const net::NetLog::Entry& entry) {
+void NetLogObserver::OnAddURLRequestEntry(const net::NetLogEntry& entry) {
bool is_begin = entry.phase() == net::NetLogEventPhase::BEGIN;
bool is_end = entry.phase() == net::NetLogEventPhase::END;

Powered by Google App Engine
This is Rietveld 408576698