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

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

Issue 2805043004: Add a GetAlternativeService method to HttpStream to return any (Closed)
Patch Set: Created 3 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
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_HTTP_STREAM_H_ 5 #ifndef NET_SPDY_SPDY_HTTP_STREAM_H_
6 #define NET_SPDY_SPDY_HTTP_STREAM_H_ 6 #define NET_SPDY_SPDY_HTTP_STREAM_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // Total number of bytes received over the network of SPDY data, headers, and 68 // Total number of bytes received over the network of SPDY data, headers, and
69 // push_promise frames associated with this stream, including the size of 69 // push_promise frames associated with this stream, including the size of
70 // frame headers, after SSL decryption and not including proxy overhead. 70 // frame headers, after SSL decryption and not including proxy overhead.
71 int64_t GetTotalReceivedBytes() const override; 71 int64_t GetTotalReceivedBytes() const override;
72 // Total number of bytes sent over the network of SPDY frames associated with 72 // Total number of bytes sent over the network of SPDY frames associated with
73 // this stream, including the size of frame headers, before SSL encryption and 73 // this stream, including the size of frame headers, before SSL encryption and
74 // not including proxy overhead. Note that some SPDY frames such as pings are 74 // not including proxy overhead. Note that some SPDY frames such as pings are
75 // not associated with any stream, and are not included in this value. 75 // not associated with any stream, and are not included in this value.
76 int64_t GetTotalSentBytes() const override; 76 int64_t GetTotalSentBytes() const override;
77 bool GetAlternativeService(
78 AlternativeService* alternative_service) const override;
77 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; 79 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override;
78 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; 80 bool GetRemoteEndpoint(IPEndPoint* endpoint) override;
79 void PopulateNetErrorDetails(NetErrorDetails* details) override; 81 void PopulateNetErrorDetails(NetErrorDetails* details) override;
80 void SetPriority(RequestPriority priority) override; 82 void SetPriority(RequestPriority priority) override;
81 83
82 // SpdyStream::Delegate implementation. 84 // SpdyStream::Delegate implementation.
83 void OnHeadersSent() override; 85 void OnHeadersSent() override;
84 void OnHeadersReceived(const SpdyHeaderBlock& response_headers) override; 86 void OnHeadersReceived(const SpdyHeaderBlock& response_headers) override;
85 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override; 87 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override;
86 void OnDataSent() override; 88 void OnDataSent() override;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 bool was_alpn_negotiated_; 199 bool was_alpn_negotiated_;
198 200
199 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; 201 base::WeakPtrFactory<SpdyHttpStream> weak_factory_;
200 202
201 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); 203 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream);
202 }; 204 };
203 205
204 } // namespace net 206 } // namespace net
205 207
206 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ 208 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698