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

Unified Diff: net/sdch/sdch_owner.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/quic/chromium/quic_stream_factory.cc ('k') | net/socket/client_socket_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/sdch/sdch_owner.cc
diff --git a/net/sdch/sdch_owner.cc b/net/sdch/sdch_owner.cc
index 5dc949a3e2f2dc78379c885eddef56c21b5e5ed4..6e6af62da519d792e964f453d21982eacbec205b 100644
--- a/net/sdch/sdch_owner.cc
+++ b/net/sdch/sdch_owner.cc
@@ -17,6 +17,7 @@
#include "base/values.h"
#include "net/base/sdch_manager.h"
#include "net/base/sdch_net_log_params.h"
+#include "net/log/net_log_event_type.h"
namespace net {
@@ -419,7 +420,7 @@ void SdchOwner::OnDictionaryFetched(base::Time last_used,
max_total_dictionary_size_) {
RecordDictionaryFate(DICTIONARY_FATE_FETCH_IGNORED_NO_SPACE);
SdchManager::SdchErrorRecovery(SDCH_DICTIONARY_NO_ROOM);
- net_log.AddEvent(NetLog::TYPE_SDCH_DICTIONARY_ERROR,
+ net_log.AddEvent(NetLogEventType::SDCH_DICTIONARY_ERROR,
base::Bind(&NetLogSdchDictionaryFetchProblemCallback,
SDCH_DICTIONARY_NO_ROOM, dictionary_url, true));
return;
@@ -434,7 +435,7 @@ void SdchOwner::OnDictionaryFetched(base::Time last_used,
if (rv != SDCH_OK) {
RecordDictionaryFate(DICTIONARY_FATE_FETCH_MANAGER_REFUSED);
SdchManager::SdchErrorRecovery(rv);
- net_log.AddEvent(NetLog::TYPE_SDCH_DICTIONARY_ERROR,
+ net_log.AddEvent(NetLogEventType::SDCH_DICTIONARY_ERROR,
base::Bind(&NetLogSdchDictionaryFetchProblemCallback, rv,
dictionary_url, true));
return;
« no previous file with comments | « net/quic/chromium/quic_stream_factory.cc ('k') | net/socket/client_socket_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698