OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_LOG_NET_LOG_PARAMETERS_CALLBACK_H_ |
| 6 #define NET_LOG_NET_LOG_PARAMETERS_CALLBACK_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/callback_forward.h" |
| 11 #include "net/log/net_log_capture_mode.h" |
| 12 |
| 13 namespace base { |
| 14 class Value; |
| 15 } |
| 16 |
| 17 namespace net { |
| 18 |
| 19 // A callback that returns a Value representation of the parameters |
| 20 // associated with an event. If called, it will be called synchronously, |
| 21 // so it need not have owning references. May be called more than once, or |
| 22 // not at all. May return nullptr. |
| 23 typedef base::Callback<std::unique_ptr<base::Value>(NetLogCaptureMode)> |
| 24 NetLogParametersCallback; |
| 25 |
| 26 } // namespace net |
| 27 |
| 28 #endif // NET_LOG_NET_LOG_PARAMETERS_CALLBACK_H_ |
OLD | NEW |