OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_EVENT_C
REATOR_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_EVENT_C
REATOR_H_ |
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_EVENT_C
REATOR_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_EVENT_C
REATOR_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/basictypes.h" | |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
15 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event
_storage_delegate.h" | 16 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event
_storage_delegate.h" |
16 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade
rs.h" | 17 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade
rs.h" |
17 #include "net/log/net_log.h" | 18 #include "net/log/net_log.h" |
18 | 19 |
19 class GURL; | 20 class GURL; |
20 | 21 |
21 namespace base { | 22 namespace base { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 net::NetLog::EventType type, | 119 net::NetLog::EventType type, |
119 bool enable, | 120 bool enable, |
120 const net::NetLog::ParametersCallback& callback); | 121 const net::NetLog::ParametersCallback& callback); |
121 | 122 |
122 // Prepare and post a Data Reduction Proxy bypass event for the event store | 123 // Prepare and post a Data Reduction Proxy bypass event for the event store |
123 // on a BoundNetLog. | 124 // on a BoundNetLog. |
124 void PostBoundNetLogBypassEvent( | 125 void PostBoundNetLogBypassEvent( |
125 const net::BoundNetLog& net_log, | 126 const net::BoundNetLog& net_log, |
126 net::NetLog::EventType type, | 127 net::NetLog::EventType type, |
127 net::NetLog::EventPhase phase, | 128 net::NetLog::EventPhase phase, |
128 int64 expiration_ticks, | 129 int64_t expiration_ticks, |
129 const net::NetLog::ParametersCallback& callback); | 130 const net::NetLog::ParametersCallback& callback); |
130 | 131 |
131 // Prepare and post a secure proxy check event for the event store on a | 132 // Prepare and post a secure proxy check event for the event store on a |
132 // BoundNetLog. | 133 // BoundNetLog. |
133 void PostBoundNetLogSecureProxyCheckEvent( | 134 void PostBoundNetLogSecureProxyCheckEvent( |
134 const net::BoundNetLog& net_log, | 135 const net::BoundNetLog& net_log, |
135 net::NetLog::EventType type, | 136 net::NetLog::EventType type, |
136 net::NetLog::EventPhase phase, | 137 net::NetLog::EventPhase phase, |
137 DataReductionProxyEventStorageDelegate::SecureProxyCheckState state, | 138 DataReductionProxyEventStorageDelegate::SecureProxyCheckState state, |
138 const net::NetLog::ParametersCallback& callback); | 139 const net::NetLog::ParametersCallback& callback); |
(...skipping 10 matching lines...) Expand all Loading... |
149 DataReductionProxyEventStorageDelegate* storage_delegate_; | 150 DataReductionProxyEventStorageDelegate* storage_delegate_; |
150 | 151 |
151 // Enforce usage on the IO thread. | 152 // Enforce usage on the IO thread. |
152 base::ThreadChecker thread_checker_; | 153 base::ThreadChecker thread_checker_; |
153 | 154 |
154 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyEventCreator); | 155 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyEventCreator); |
155 }; | 156 }; |
156 | 157 |
157 } // namespace data_reduction_proxy | 158 } // namespace data_reduction_proxy |
158 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_EVEN
T_CREATOR_H_ | 159 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_EVEN
T_CREATOR_H_ |
OLD | NEW |