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

Side by Side Diff: net/spdy/core/spdy_headers_handler_interface.h

Issue 2839373002: Implement SPDY_EXPORT and SPDY_EXPORT_PRIVATE macros. (Closed)
Patch Set: Rebase: manually resolve trivial merge conflicts. Created 3 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/spdy/core/spdy_header_indexing.h ('k') | net/spdy/core/spdy_pinnable_buffer_piece.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CORE_SPDY_HEADERS_HANDLER_INTERFACE_H_ 5 #ifndef NET_SPDY_CORE_SPDY_HEADERS_HANDLER_INTERFACE_H_
6 #define NET_SPDY_CORE_SPDY_HEADERS_HANDLER_INTERFACE_H_ 6 #define NET_SPDY_CORE_SPDY_HEADERS_HANDLER_INTERFACE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "net/base/net_export.h" 10 #include "net/spdy/platform/api/spdy_export.h"
11 #include "net/spdy/platform/api/spdy_string_piece.h" 11 #include "net/spdy/platform/api/spdy_string_piece.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 // This interface defines how an object that accepts header data should behave. 15 // This interface defines how an object that accepts header data should behave.
16 // It is used by both SpdyHeadersBlockParser and HpackDecoder. 16 // It is used by both SpdyHeadersBlockParser and HpackDecoder.
17 class NET_EXPORT_PRIVATE SpdyHeadersHandlerInterface { 17 class SPDY_EXPORT_PRIVATE SpdyHeadersHandlerInterface {
18 public: 18 public:
19 virtual ~SpdyHeadersHandlerInterface() {} 19 virtual ~SpdyHeadersHandlerInterface() {}
20 20
21 // A callback method which notifies when the parser starts handling a new 21 // A callback method which notifies when the parser starts handling a new
22 // header block. Will only be called once per block, even if it extends into 22 // header block. Will only be called once per block, even if it extends into
23 // CONTINUATION frames. 23 // CONTINUATION frames.
24 virtual void OnHeaderBlockStart() = 0; 24 virtual void OnHeaderBlockStart() = 0;
25 25
26 // A callback method which notifies on a header key value pair. Multiple 26 // A callback method which notifies on a header key value pair. Multiple
27 // values for a given key will be emitted as multiple calls to OnHeader. 27 // values for a given key will be emitted as multiple calls to OnHeader.
28 virtual void OnHeader(SpdyStringPiece key, SpdyStringPiece value) = 0; 28 virtual void OnHeader(SpdyStringPiece key, SpdyStringPiece value) = 0;
29 29
30 // TODO(yasong): deprecate this method with 30 // TODO(yasong): deprecate this method with
31 // --chromium_http2_flag_log_compressed_size. 31 // --chromium_http2_flag_log_compressed_size.
32 // A callback method which notifies when the parser finishes handling a 32 // A callback method which notifies when the parser finishes handling a
33 // header block (i.e. the containing frame has the END_HEADERS flag set). 33 // header block (i.e. the containing frame has the END_HEADERS flag set).
34 // Also indicates the total number of bytes in this block. 34 // Also indicates the total number of bytes in this block.
35 virtual void OnHeaderBlockEnd(size_t uncompressed_header_bytes) = 0; 35 virtual void OnHeaderBlockEnd(size_t uncompressed_header_bytes) = 0;
36 36
37 // A callback method which notifies when the parser finishes handling a 37 // A callback method which notifies when the parser finishes handling a
38 // header block (i.e. the containing frame has the END_HEADERS flag set). 38 // header block (i.e. the containing frame has the END_HEADERS flag set).
39 // Also indicates the total number of bytes in this block. 39 // Also indicates the total number of bytes in this block.
40 virtual void OnHeaderBlockEnd(size_t uncompressed_header_bytes, 40 virtual void OnHeaderBlockEnd(size_t uncompressed_header_bytes,
41 size_t compressed_header_bytes) = 0; 41 size_t compressed_header_bytes) = 0;
42 }; 42 };
43 43
44 } // namespace net 44 } // namespace net
45 45
46 #endif // NET_SPDY_CORE_SPDY_HEADERS_HANDLER_INTERFACE_H_ 46 #endif // NET_SPDY_CORE_SPDY_HEADERS_HANDLER_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/spdy/core/spdy_header_indexing.h ('k') | net/spdy/core/spdy_pinnable_buffer_piece.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698