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

Unified Diff: content/browser/media/media_internals_proxy.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
Index: content/browser/media/media_internals_proxy.cc
diff --git a/content/browser/media/media_internals_proxy.cc b/content/browser/media/media_internals_proxy.cc
index 8b492a259d0cab90f6e486673b9e4c076e507bc7..41cb3895d90d494430e6cef35ee03a2e4708baad 100644
--- a/content/browser/media/media_internals_proxy.cc
+++ b/content/browser/media/media_internals_proxy.cc
@@ -20,17 +20,18 @@
#include "content/public/browser/notification_types.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_ui.h"
+#include "net/log/net_log_event_type.h"
namespace content {
static const int kMediaInternalsProxyEventDelayMilliseconds = 100;
-static const net::NetLog::EventType kNetEventTypeFilter[] = {
- net::NetLog::TYPE_DISK_CACHE_ENTRY_IMPL,
- net::NetLog::TYPE_SPARSE_READ,
- net::NetLog::TYPE_SPARSE_WRITE,
- net::NetLog::TYPE_URL_REQUEST_START_JOB,
- net::NetLog::TYPE_HTTP_TRANSACTION_READ_RESPONSE_HEADERS,
+static const net::NetLogEventType kNetEventTypeFilter[] = {
+ net::NetLogEventType::DISK_CACHE_ENTRY_IMPL,
+ net::NetLogEventType::SPARSE_READ,
+ net::NetLogEventType::SPARSE_WRITE,
+ net::NetLogEventType::URL_REQUEST_START_JOB,
+ net::NetLogEventType::HTTP_TRANSACTION_READ_RESPONSE_HEADERS,
};
MediaInternalsProxy::MediaInternalsProxy() {
@@ -109,14 +110,14 @@ MediaInternalsProxy::~MediaInternalsProxy() {}
base::Value* MediaInternalsProxy::GetConstants() {
base::DictionaryValue* event_phases = new base::DictionaryValue();
event_phases->SetInteger(
- net::NetLog::EventPhaseToString(net::NetLog::PHASE_NONE),
- net::NetLog::PHASE_NONE);
+ net::NetLog::EventPhaseToString(net::NetLogEventPhase::NONE),
+ static_cast<int>(net::NetLogEventPhase::NONE));
event_phases->SetInteger(
- net::NetLog::EventPhaseToString(net::NetLog::PHASE_BEGIN),
- net::NetLog::PHASE_BEGIN);
+ net::NetLog::EventPhaseToString(net::NetLogEventPhase::BEGIN),
+ static_cast<int>(net::NetLogEventPhase::BEGIN));
event_phases->SetInteger(
- net::NetLog::EventPhaseToString(net::NetLog::PHASE_END),
- net::NetLog::PHASE_END);
+ net::NetLog::EventPhaseToString(net::NetLogEventPhase::END),
+ static_cast<int>(net::NetLogEventPhase::END));
base::DictionaryValue* constants = new base::DictionaryValue();
constants->Set("eventTypes", net::NetLog::GetEventTypesAsValue());
« no previous file with comments | « content/browser/loader/netlog_observer.cc ('k') | content/browser/service_worker/service_worker_fetch_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698