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

Side by Side Diff: net/tools/flip_server/spdy_interface.h

Issue 10763011: Remove several usages of linked_ptr in spdy land. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/spdy/spdy_stream.cc ('k') | net/tools/flip_server/spdy_interface.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_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_ 5 #ifndef NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_
6 #define NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_ 6 #define NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 std::string remote_ip, 45 std::string remote_ip,
46 bool use_ssl) OVERRIDE; 46 bool use_ssl) OVERRIDE;
47 47
48 private: 48 private:
49 virtual void set_is_request() OVERRIDE {} 49 virtual void set_is_request() OVERRIDE {}
50 SMInterface* NewConnectionInterface(); 50 SMInterface* NewConnectionInterface();
51 SMInterface* FindOrMakeNewSMConnectionInterface(std::string server_ip, 51 SMInterface* FindOrMakeNewSMConnectionInterface(std::string server_ip,
52 std::string server_port); 52 std::string server_port);
53 int SpdyHandleNewStream(SpdyStreamId stream_id, 53 int SpdyHandleNewStream(SpdyStreamId stream_id,
54 SpdyPriority priority, 54 SpdyPriority priority,
55 const linked_ptr<SpdyHeaderBlock>& headers, 55 const SpdyHeaderBlock& headers,
56 std::string& http_data, 56 std::string& http_data,
57 bool* is_https_scheme); 57 bool* is_https_scheme);
58 58
59 // BufferedSpdyFramerVisitorInterface: 59 // BufferedSpdyFramerVisitorInterface:
60 virtual void OnError(SpdyFramer::SpdyError error_code) OVERRIDE {} 60 virtual void OnError(SpdyFramer::SpdyError error_code) OVERRIDE {}
61 virtual void OnStreamError(SpdyStreamId stream_id, 61 virtual void OnStreamError(SpdyStreamId stream_id,
62 const std::string& description) OVERRIDE {} 62 const std::string& description) OVERRIDE {}
63 // Called after all the header data for SYN_STREAM control frame is received. 63 // Called after all the header data for SYN_STREAM control frame is received.
64 virtual void OnSynStream(SpdyStreamId stream_id, 64 virtual void OnSynStream(SpdyStreamId stream_id,
65 SpdyStreamId associated_stream_id, 65 SpdyStreamId associated_stream_id,
66 SpdyPriority priority, 66 SpdyPriority priority,
67 uint8 credential_slot, 67 uint8 credential_slot,
68 bool fin, 68 bool fin,
69 bool unidirectional, 69 bool unidirectional,
70 const linked_ptr<SpdyHeaderBlock>& headers) OVERRIDE; 70 const SpdyHeaderBlock& headers) OVERRIDE;
71 71
72 // Called after all the header data for SYN_REPLY control frame is received. 72 // Called after all the header data for SYN_REPLY control frame is received.
73 virtual void OnSynReply(SpdyStreamId stream_id, 73 virtual void OnSynReply(SpdyStreamId stream_id,
74 bool fin, 74 bool fin,
75 const linked_ptr<SpdyHeaderBlock>& headers) OVERRIDE; 75 const SpdyHeaderBlock& headers) OVERRIDE;
76 76
77 // Called after all the header data for HEADERS control frame is received. 77 // Called after all the header data for HEADERS control frame is received.
78 virtual void OnHeaders(SpdyStreamId stream_id, 78 virtual void OnHeaders(SpdyStreamId stream_id,
79 bool fin, 79 bool fin,
80 const linked_ptr<SpdyHeaderBlock>& headers) OVERRIDE; 80 const SpdyHeaderBlock& headers) OVERRIDE;
81 81
82 // Called when data is received. 82 // Called when data is received.
83 // |stream_id| The stream receiving data. 83 // |stream_id| The stream receiving data.
84 // |data| A buffer containing the data received. 84 // |data| A buffer containing the data received.
85 // |len| The length of the data buffer. 85 // |len| The length of the data buffer.
86 // When the other side has finished sending data on this stream, 86 // When the other side has finished sending data on this stream,
87 // this method will be called with a zero-length buffer. 87 // this method will be called with a zero-length buffer.
88 virtual void OnStreamFrameData(SpdyStreamId stream_id, 88 virtual void OnStreamFrameData(SpdyStreamId stream_id,
89 const char* data, 89 const char* data,
90 size_t len) OVERRIDE; 90 size_t len) OVERRIDE;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 typedef std::map<uint32, SMInterface*> StreamToSmif; 187 typedef std::map<uint32, SMInterface*> StreamToSmif;
188 StreamToSmif stream_to_smif_; 188 StreamToSmif stream_to_smif_;
189 bool close_on_error_; 189 bool close_on_error_;
190 190
191 static std::string forward_ip_header_; 191 static std::string forward_ip_header_;
192 }; 192 };
193 193
194 } // namespace net 194 } // namespace net
195 195
196 #endif // NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_ 196 #endif // NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_stream.cc ('k') | net/tools/flip_server/spdy_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698