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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h

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: components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h
index 66041de47dea4ab09807a0f3508161e305e42ad0..c6b26c4f2912bba0d3c46b030676ce6682b2de54 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h
@@ -15,6 +15,7 @@
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h"
#include "net/log/net_log.h"
+#include "net/log/net_log_event_type.h"
class GURL;
@@ -108,13 +109,13 @@ class DataReductionProxyEventCreator {
// Prepare and post a generic Data Reduction Proxy event with no additional
// parameters.
void PostEvent(net::NetLog* net_log,
- net::NetLog::EventType type,
+ net::NetLogEventType type,
const net::NetLog::ParametersCallback& callback);
// Prepare and post enabling/disabling proxy events for the event store on the
// a net::NetLog.
void PostEnabledEvent(net::NetLog* net_log,
- net::NetLog::EventType type,
+ net::NetLogEventType type,
bool enable,
const net::NetLog::ParametersCallback& callback);
@@ -122,8 +123,8 @@ class DataReductionProxyEventCreator {
// on a BoundNetLog.
void PostBoundNetLogBypassEvent(
const net::BoundNetLog& net_log,
- net::NetLog::EventType type,
- net::NetLog::EventPhase phase,
+ net::NetLogEventType type,
+ net::NetLogEventPhase phase,
int64_t expiration_ticks,
const net::NetLog::ParametersCallback& callback);
@@ -131,8 +132,8 @@ class DataReductionProxyEventCreator {
// BoundNetLog.
void PostBoundNetLogSecureProxyCheckEvent(
const net::BoundNetLog& net_log,
- net::NetLog::EventType type,
- net::NetLog::EventPhase phase,
+ net::NetLogEventType type,
+ net::NetLogEventPhase phase,
DataReductionProxyEventStorageDelegate::SecureProxyCheckState state,
const net::NetLog::ParametersCallback& callback);
@@ -140,8 +141,8 @@ class DataReductionProxyEventCreator {
// BoundNetLog.
void PostBoundNetLogConfigRequestEvent(
const net::BoundNetLog& net_log,
- net::NetLog::EventType type,
- net::NetLog::EventPhase phase,
+ net::NetLogEventType type,
+ net::NetLogEventPhase phase,
const net::NetLog::ParametersCallback& callback);
// Must outlive |this|. Used for posting calls to the UI thread.

Powered by Google App Engine
This is Rietveld 408576698