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

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

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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 bb7758487ece49f4dbe79cf82a4f4cc714144898..9ac949af126689f7dec0a468096bdf8010e58498 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
@@ -14,8 +14,8 @@
#include "base/threading/thread_checker.h"
#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"
+#include "net/log/net_log_parameters_callback.h"
class GURL;
@@ -27,6 +27,7 @@ class Value;
namespace net {
class NetLogWithSource;
class ProxyServer;
+class NetLog;
}
namespace data_reduction_proxy {
@@ -112,14 +113,14 @@ class DataReductionProxyEventCreator {
// parameters.
void PostEvent(net::NetLog* net_log,
net::NetLogEventType type,
- const net::NetLog::ParametersCallback& callback);
+ const net::NetLogParametersCallback& callback);
// Prepare and post enabling/disabling proxy events for the event store on the
// a net::NetLog.
void PostEnabledEvent(net::NetLog* net_log,
net::NetLogEventType type,
bool enable,
- const net::NetLog::ParametersCallback& callback);
+ const net::NetLogParametersCallback& callback);
// Prepare and post a Data Reduction Proxy bypass event for the event store
// on a NetLogWithSource.
@@ -128,7 +129,7 @@ class DataReductionProxyEventCreator {
net::NetLogEventType type,
net::NetLogEventPhase phase,
int64_t expiration_ticks,
- const net::NetLog::ParametersCallback& callback);
+ const net::NetLogParametersCallback& callback);
// Prepare and post a secure proxy check event for the event store on a
// NetLogWithSource.
@@ -137,7 +138,7 @@ class DataReductionProxyEventCreator {
net::NetLogEventType type,
net::NetLogEventPhase phase,
DataReductionProxyEventStorageDelegate::SecureProxyCheckState state,
- const net::NetLog::ParametersCallback& callback);
+ const net::NetLogParametersCallback& callback);
// Prepare and post a config request event for the event store on a
// NetLogWithSource.
@@ -145,7 +146,7 @@ class DataReductionProxyEventCreator {
const net::NetLogWithSource& net_log,
net::NetLogEventType type,
net::NetLogEventPhase phase,
- const net::NetLog::ParametersCallback& callback);
+ const net::NetLogParametersCallback& callback);
// Must outlive |this|. Used for posting calls to the UI thread.
DataReductionProxyEventStorageDelegate* storage_delegate_;

Powered by Google App Engine
This is Rietveld 408576698