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

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

Issue 10233016: Add a new UMA histogram for tracking SpdySessionErrorDetails (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 8 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 | « no previous file | net/spdy/buffered_spdy_framer_spdy2_unittest.cc » ('j') | net/spdy/spdy_session.h » ('J')
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_BUFFERED_SPDY_FRAMER_H_ 5 #ifndef NET_SPDY_BUFFERED_SPDY_FRAMER_H_
6 #define NET_SPDY_BUFFERED_SPDY_FRAMER_H_ 6 #define NET_SPDY_BUFFERED_SPDY_FRAMER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/linked_ptr.h" 13 #include "base/memory/linked_ptr.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
16 #include "net/spdy/spdy_framer.h" 16 #include "net/spdy/spdy_framer.h"
17 #include "net/spdy/spdy_protocol.h" 17 #include "net/spdy/spdy_protocol.h"
18 18
19 namespace net { 19 namespace net {
20 20
21 class NET_EXPORT_PRIVATE BufferedSpdyFramerVisitorInterface { 21 class NET_EXPORT_PRIVATE BufferedSpdyFramerVisitorInterface {
22 public: 22 public:
23 BufferedSpdyFramerVisitorInterface() {} 23 BufferedSpdyFramerVisitorInterface() {}
24 virtual ~BufferedSpdyFramerVisitorInterface() {} 24 virtual ~BufferedSpdyFramerVisitorInterface() {}
25 25
26 // Called if an error is detected in the SpdyFrame protocol. 26 // Called if an error is detected in the SpdyFrame protocol.
27 virtual void OnError(int error_code) = 0; 27 virtual void OnError(SpdyFramer::SpdyError error_code) = 0;
28 28
29 // Called if an error is detected in a SPDY stream. 29 // Called if an error is detected in a SPDY stream.
30 virtual void OnStreamError(SpdyStreamId stream_id, 30 virtual void OnStreamError(SpdyStreamId stream_id,
31 const std::string& description) = 0; 31 const std::string& description) = 0;
32 32
33 // Called after all the header data for SYN_STREAM control frame is received. 33 // Called after all the header data for SYN_STREAM control frame is received.
34 virtual void OnSynStream(const SpdySynStreamControlFrame& frame, 34 virtual void OnSynStream(const SpdySynStreamControlFrame& frame,
35 const linked_ptr<SpdyHeaderBlock>& headers) = 0; 35 const linked_ptr<SpdyHeaderBlock>& headers) = 0;
36 36
37 // Called after all the header data for SYN_REPLY control frame is received. 37 // Called after all the header data for SYN_REPLY control frame is received.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 SpdyStreamId header_stream_id_; 161 SpdyStreamId header_stream_id_;
162 scoped_ptr<SpdyFrame> control_frame_; 162 scoped_ptr<SpdyFrame> control_frame_;
163 int frames_received_; 163 int frames_received_;
164 164
165 DISALLOW_COPY_AND_ASSIGN(BufferedSpdyFramer); 165 DISALLOW_COPY_AND_ASSIGN(BufferedSpdyFramer);
166 }; 166 };
167 167
168 } // namespace net 168 } // namespace net
169 169
170 #endif // NET_SPDY_BUFFERED_SPDY_FRAMER_H_ 170 #endif // NET_SPDY_BUFFERED_SPDY_FRAMER_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/buffered_spdy_framer_spdy2_unittest.cc » ('j') | net/spdy/spdy_session.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698