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

Unified Diff: net/url_request/url_request_throttler_manager.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_throttler_entry.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_throttler_manager.cc
diff --git a/net/url_request/url_request_throttler_manager.cc b/net/url_request/url_request_throttler_manager.cc
index a36f0c96e93fb42a6aa4e923eca796be5436a275..77a30b3d7b80c4fe5c9376b11d7268c3b76e0db5 100644
--- a/net/url_request/url_request_throttler_manager.cc
+++ b/net/url_request/url_request_throttler_manager.cc
@@ -8,6 +8,8 @@
#include "base/strings/string_util.h"
#include "net/base/url_util.h"
#include "net/log/net_log.h"
+#include "net/log/net_log_event_type.h"
+#include "net/log/net_log_source_type.h"
namespace net {
@@ -78,7 +80,7 @@ scoped_refptr<URLRequestThrottlerEntryInterface>
if (IsLocalhost(host)) {
if (!logged_for_localhost_disabled_ && IsLocalhost(host)) {
logged_for_localhost_disabled_ = true;
- net_log_.AddEvent(NetLog::TYPE_THROTTLING_DISABLED_FOR_HOST,
+ net_log_.AddEvent(NetLogEventType::THROTTLING_DISABLED_FOR_HOST,
NetLog::StringCallback("host", &host));
}
@@ -120,8 +122,8 @@ bool URLRequestThrottlerManager::enable_thread_checks() const {
void URLRequestThrottlerManager::set_net_log(NetLog* net_log) {
DCHECK(net_log);
- net_log_ = BoundNetLog::Make(net_log,
- NetLog::SOURCE_EXPONENTIAL_BACKOFF_THROTTLING);
+ net_log_ = BoundNetLog::Make(
+ net_log, NetLogSourceType::EXPONENTIAL_BACKOFF_THROTTLING);
}
NetLog* URLRequestThrottlerManager::net_log() const {
« no previous file with comments | « net/url_request/url_request_throttler_entry.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698