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

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

Issue 2337253004: Update Token Binding code to the latest drafts (Closed)
Patch Set: Fix compilation error in unit_tests Created 4 years, 3 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 // 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 int64_t GetTotalSentBytes() const override; 73 int64_t GetTotalSentBytes() const override;
74 74
75 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; 75 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override;
76 76
77 void GetSSLInfo(SSLInfo* ssl_info) override; 77 void GetSSLInfo(SSLInfo* ssl_info) override;
78 78
79 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; 79 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override;
80 80
81 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; 81 bool GetRemoteEndpoint(IPEndPoint* endpoint) override;
82 82
83 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, 83 Error GetTokenBindingSignature(crypto::ECPrivateKey* key,
84 std::vector<uint8_t>* out) override; 84 TokenBindingType tb_type,
85 std::vector<uint8_t>* out) override;
85 86
86 void Drain(HttpNetworkSession* session) override; 87 void Drain(HttpNetworkSession* session) override;
87 88
88 void PopulateNetErrorDetails(NetErrorDetails* details) override; 89 void PopulateNetErrorDetails(NetErrorDetails* details) override;
89 90
90 void SetPriority(RequestPriority priority) override; 91 void SetPriority(RequestPriority priority) override;
91 92
92 private: 93 private:
93 HttpStreamParser* parser() const { return state_.parser(); } 94 HttpStreamParser* parser() const { return state_.parser(); }
94 95
95 HttpBasicState state_; 96 HttpBasicState state_;
96 97
97 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); 98 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream);
98 }; 99 };
99 100
100 } // namespace net 101 } // namespace net
101 102
102 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ 103 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698