| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 NET_WEBSOCKETS_WEBSOCKET_NET_LOG_PARAMS_H_ | 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_NET_LOG_PARAMS_H_ |
| 6 #define NET_WEBSOCKETS_WEBSOCKET_NET_LOG_PARAMS_H_ | 6 #define NET_WEBSOCKETS_WEBSOCKET_NET_LOG_PARAMS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | |
| 11 | 10 |
| 12 #include "base/basictypes.h" | 11 #include "net/base/net_export.h" |
| 13 #include "base/memory/ref_counted.h" | |
| 14 #include "base/string_split.h" | |
| 15 #include "base/string_util.h" | |
| 16 #include "base/stringprintf.h" | |
| 17 #include "base/values.h" | |
| 18 #include "net/base/net_log.h" | 12 #include "net/base/net_log.h" |
| 19 | 13 |
| 20 namespace net { | 14 namespace net { |
| 21 | 15 |
| 22 class NET_EXPORT_PRIVATE NetLogWebSocketHandshakeParameter | 16 NET_EXPORT_PRIVATE base::Value* NetLogWebSocketHandshakeCallback( |
| 23 : public NetLog::EventParameters { | 17 const std::string* headers, |
| 24 public: | 18 NetLog::LogLevel /* log_level */); |
| 25 explicit NetLogWebSocketHandshakeParameter(const std::string& headers); | |
| 26 | |
| 27 virtual Value* ToValue() const OVERRIDE; | |
| 28 | |
| 29 private: | |
| 30 virtual ~NetLogWebSocketHandshakeParameter(); | |
| 31 | |
| 32 const std::string headers_; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(NetLogWebSocketHandshakeParameter); | |
| 35 }; | |
| 36 | 19 |
| 37 } // namespace net | 20 } // namespace net |
| 38 | 21 |
| 39 #endif // NET_WEBSOCKETS_WEBSOCKET_NET_LOG_PARAMS_H_ | 22 #endif // NET_WEBSOCKETS_WEBSOCKET_NET_LOG_PARAMS_H_ |
| OLD | NEW |