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 3// found in the LICENSE file. 4 5#ifndef NET_WEBSOCKETS_WEBSOCKET_NET_LOG_PARAMS_H_ 6#define NET_WEBSOCKETS_WEBSOCKET_NET_LOG_PARAMS_H_ 7#pragma once 8 9#include <string> 10#include <vector> 11 12#include "base/basictypes.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" 19 20namespace net { 21 22class NetLogWebSocketHandshakeParameter : public NetLog::EventParameters { 23 public: 24 explicit NetLogWebSocketHandshakeParameter(const std::string& headers); 25 26 virtual Value* ToValue() const; 27 28 private: 29 virtual ~NetLogWebSocketHandshakeParameter(); 30 31 const std::string headers_; 32 33 DISALLOW_COPY_AND_ASSIGN(NetLogWebSocketHandshakeParameter); 34}; 35 36} // namespace net 37 38#endif // NET_WEBSOCKETS_WEBSOCKET_NET_LOG_PARAMS_H_ 39