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

Side by Side Diff: net/http/http_basic_stream.h

Issue 2805043004: Add a GetAlternativeService method to HttpStream to return any (Closed)
Patch Set: fix 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
« no previous file with comments | « no previous file | net/http/http_basic_stream.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 // HttpBasicStream is a simple implementation of HttpStream. It assumes it is 5 // HttpBasicStream is a simple implementation of HttpStream. It assumes it is
6 // not sharing a sharing with any other HttpStreams, therefore it just reads and 6 // not sharing a sharing with any other HttpStreams, therefore it just reads and
7 // writes directly to the Http Stream. 7 // writes directly to the Http Stream.
8 8
9 #ifndef NET_HTTP_HTTP_BASIC_STREAM_H_ 9 #ifndef NET_HTTP_HTTP_BASIC_STREAM_H_
10 #define NET_HTTP_HTTP_BASIC_STREAM_H_ 10 #define NET_HTTP_HTTP_BASIC_STREAM_H_
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void SetConnectionReused() override; 65 void SetConnectionReused() override;
66 66
67 bool CanReuseConnection() const override; 67 bool CanReuseConnection() const override;
68 68
69 int64_t GetTotalReceivedBytes() const override; 69 int64_t GetTotalReceivedBytes() const override;
70 70
71 int64_t GetTotalSentBytes() const override; 71 int64_t GetTotalSentBytes() const override;
72 72
73 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; 73 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override;
74 74
75 bool GetAlternativeService(
76 AlternativeService* alternative_service) const override;
77
75 void GetSSLInfo(SSLInfo* ssl_info) override; 78 void GetSSLInfo(SSLInfo* ssl_info) override;
76 79
77 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; 80 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override;
78 81
79 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; 82 bool GetRemoteEndpoint(IPEndPoint* endpoint) override;
80 83
81 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, 84 Error GetTokenBindingSignature(crypto::ECPrivateKey* key,
82 TokenBindingType tb_type, 85 TokenBindingType tb_type,
83 std::vector<uint8_t>* out) override; 86 std::vector<uint8_t>* out) override;
84 87
85 void Drain(HttpNetworkSession* session) override; 88 void Drain(HttpNetworkSession* session) override;
86 89
87 void PopulateNetErrorDetails(NetErrorDetails* details) override; 90 void PopulateNetErrorDetails(NetErrorDetails* details) override;
88 91
89 void SetPriority(RequestPriority priority) override; 92 void SetPriority(RequestPriority priority) override;
90 93
91 private: 94 private:
92 HttpStreamParser* parser() const { return state_.parser(); } 95 HttpStreamParser* parser() const { return state_.parser(); }
93 96
94 HttpBasicState state_; 97 HttpBasicState state_;
95 98
96 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); 99 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream);
97 }; 100 };
98 101
99 } // namespace net 102 } // namespace net
100 103
101 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ 104 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_basic_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698