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

Side by Side Diff: net/websockets/websocket_net_log_params.h

Issue 10548028: NetLogEventParameter to Callback refactoring 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix bad paste Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/websockets/websocket_job.cc ('k') | net/websockets/websocket_net_log_params.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « net/websockets/websocket_job.cc ('k') | net/websockets/websocket_net_log_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698