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

Unified Diff: net/filter/sdch_filter.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/filter/filter.cc ('k') | net/ftp/ftp_ctrl_response_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/filter/sdch_filter.cc
diff --git a/net/filter/sdch_filter.cc b/net/filter/sdch_filter.cc
index 85be8905fa76cb179dbbcfb3b629a9b6e48b381a..3b599cf57b39bd9ccea5ffc3dd0e1168cfb6df58 100644
--- a/net/filter/sdch_filter.cc
+++ b/net/filter/sdch_filter.cc
@@ -15,6 +15,7 @@
#include "net/base/sdch_manager.h"
#include "net/base/sdch_net_log_params.h"
#include "net/base/sdch_problem_codes.h"
+#include "net/log/net_log_event_type.h"
#include "net/url_request/url_request_context.h"
#include "sdch/open-vcdiff/src/google/vcdecoder.h"
@@ -338,7 +339,7 @@ Filter::FilterStatus SdchFilter::ReadFilteredData(char* dest_buffer,
"Sdch3.ResponseCorruptionDetection.Uncached", cause, RESPONSE_MAX);
}
filter_context_.GetNetLog().AddEvent(
- NetLog::TYPE_SDCH_RESPONSE_CORRUPTION_DETECTION,
+ NetLogEventType::SDCH_RESPONSE_CORRUPTION_DETECTION,
base::Bind(&NetLogSdchResponseCorruptionDetectionCallback, cause,
filter_context_.IsCachedContent()));
@@ -561,7 +562,7 @@ int SdchFilter::OutputBufferExcess(char* const dest_buffer,
void SdchFilter::LogSdchProblem(SdchProblemCode problem) {
SdchManager::SdchErrorRecovery(problem);
filter_context_.GetNetLog().AddEvent(
- NetLog::TYPE_SDCH_DECODING_ERROR,
+ NetLogEventType::SDCH_DECODING_ERROR,
base::Bind(&NetLogSdchResourceProblemCallback, problem));
}
« no previous file with comments | « net/filter/filter.cc ('k') | net/ftp/ftp_ctrl_response_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698