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

Side by Side Diff: net/spdy/spdy_header_block.h

Issue 1135373002: Updated NetLog::ParametersCallback & all related calbacks returning value as scoped_ptr<base::Value… Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « net/socket/ssl_server_socket_unittest.cc ('k') | net/spdy/spdy_header_block.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SPDY_SPDY_HEADER_BLOCK_H_ 5 #ifndef NET_SPDY_SPDY_HEADER_BLOCK_H_
6 #define NET_SPDY_SPDY_HEADER_BLOCK_H_ 6 #define NET_SPDY_SPDY_HEADER_BLOCK_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 #include "net/log/net_log.h" 12 #include "net/log/net_log.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 // A data structure for holding a set of headers from either a 16 // A data structure for holding a set of headers from either a
17 // SYN_STREAM or SYN_REPLY frame. 17 // SYN_STREAM or SYN_REPLY frame.
18 typedef std::map<std::string, std::string> SpdyHeaderBlock; 18 typedef std::map<std::string, std::string> SpdyHeaderBlock;
19 19
20 // Converts a SpdyHeaderBlock into NetLog event parameters. Caller takes 20 // Converts a SpdyHeaderBlock into NetLog event parameters. Caller takes
21 // ownership of returned value. 21 // ownership of returned value.
22 NET_EXPORT base::Value* SpdyHeaderBlockNetLogCallback( 22 NET_EXPORT scoped_ptr<base::Value> SpdyHeaderBlockNetLogCallback(
23 const SpdyHeaderBlock* headers, 23 const SpdyHeaderBlock* headers,
24 NetLogCaptureMode capture_mode); 24 NetLogCaptureMode capture_mode);
25 25
26 // Converts NetLog event parameters into a SPDY header block and writes them 26 // Converts NetLog event parameters into a SPDY header block and writes them
27 // to |headers|. |event_param| must have been created by 27 // to |headers|. |event_param| must have been created by
28 // SpdyHeaderBlockNetLogCallback. On failure, returns false and clears 28 // SpdyHeaderBlockNetLogCallback. On failure, returns false and clears
29 // |headers|. 29 // |headers|.
30 NET_EXPORT bool SpdyHeaderBlockFromNetLogParam( 30 NET_EXPORT bool SpdyHeaderBlockFromNetLogParam(
31 const base::Value* event_param, 31 const base::Value* event_param,
32 SpdyHeaderBlock* headers); 32 SpdyHeaderBlock* headers);
33 33
34 } // namespace net 34 } // namespace net
35 35
36 #endif // NET_SPDY_SPDY_HEADER_BLOCK_H_ 36 #endif // NET_SPDY_SPDY_HEADER_BLOCK_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_server_socket_unittest.cc ('k') | net/spdy/spdy_header_block.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698