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

Unified Diff: net/url_request/url_request_redirect_job.cc

Issue 2315613002: Extracted NetLog class's inner enum types into their own enum classes and (Closed)
Patch Set: Ran "git cl format" on code. Much formatting ensued. Created 4 years, 3 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
« no previous file with comments | « net/url_request/url_request_job.cc ('k') | net/url_request/url_request_throttler_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_redirect_job.cc
diff --git a/net/url_request/url_request_redirect_job.cc b/net/url_request/url_request_redirect_job.cc
index 4e81728e3380da2f20ebcdc54e2e4f1d569c4a77..3c8ec3a2c63b0888e23781178f528d3ffad22b42 100644
--- a/net/url_request/url_request_redirect_job.cc
+++ b/net/url_request/url_request_redirect_job.cc
@@ -19,6 +19,7 @@
#include "net/http/http_response_headers.h"
#include "net/http/http_util.h"
#include "net/log/net_log.h"
+#include "net/log/net_log_event_type.h"
#include "net/url_request/url_request.h"
namespace net {
@@ -60,7 +61,7 @@ void URLRequestRedirectJob::GetLoadTimingInfo(
void URLRequestRedirectJob::Start() {
request()->net_log().AddEvent(
- NetLog::TYPE_URL_REQUEST_REDIRECT_JOB,
+ NetLogEventType::URL_REQUEST_REDIRECT_JOB,
NetLog::StringCallback("reason", &redirect_reason_));
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(&URLRequestRedirectJob::StartAsync,
@@ -121,10 +122,9 @@ void URLRequestRedirectJob::StartAsync() {
DCHECK(fake_headers_->IsRedirect(NULL));
request()->net_log().AddEvent(
- NetLog::TYPE_URL_REQUEST_FAKE_RESPONSE_HEADERS_CREATED,
- base::Bind(
- &HttpResponseHeaders::NetLogCallback,
- base::Unretained(fake_headers_.get())));
+ NetLogEventType::URL_REQUEST_FAKE_RESPONSE_HEADERS_CREATED,
+ base::Bind(&HttpResponseHeaders::NetLogCallback,
+ base::Unretained(fake_headers_.get())));
// TODO(mmenke): Consider calling the NetworkDelegate with the headers here.
// There's some weirdness about how to handle the case in which the delegate
« no previous file with comments | « net/url_request/url_request_job.cc ('k') | net/url_request/url_request_throttler_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698