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

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

Issue 1378613004: Set Token-Binding HTTP header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tb-tls-ext-new
Patch Set: Remove sequence numbers from mock reads Created 4 years, 11 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_SESSION_H_ 5 #ifndef NET_SPDY_SPDY_SESSION_H_
6 #define NET_SPDY_SPDY_SESSION_H_ 6 #define NET_SPDY_SPDY_SESSION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 // The LoadState is used for informing the user of the current network 351 // The LoadState is used for informing the user of the current network
352 // status, such as "resolving host", "connecting", etc. 352 // status, such as "resolving host", "connecting", etc.
353 LoadState GetLoadState() const; 353 LoadState GetLoadState() const;
354 354
355 // Fills SSL info in |ssl_info| and returns true when SSL is in use. 355 // Fills SSL info in |ssl_info| and returns true when SSL is in use.
356 bool GetSSLInfo(SSLInfo* ssl_info, 356 bool GetSSLInfo(SSLInfo* ssl_info,
357 bool* was_npn_negotiated, 357 bool* was_npn_negotiated,
358 NextProto* protocol_negotiated); 358 NextProto* protocol_negotiated);
359 359
360 // Signs the EKM value for Token Binding from the TLS layer using |*key| and
361 // puts the result in |*out|. Returns OK or ERR_FAILED.
362 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key,
363 std::vector<uint8_t>* out);
364
360 // Send a WINDOW_UPDATE frame for a stream. Called by a stream 365 // Send a WINDOW_UPDATE frame for a stream. Called by a stream
361 // whenever receive window size is increased. 366 // whenever receive window size is increased.
362 void SendStreamWindowUpdate(SpdyStreamId stream_id, 367 void SendStreamWindowUpdate(SpdyStreamId stream_id,
363 uint32_t delta_window_size); 368 uint32_t delta_window_size);
364 369
365 // Accessors for the session's availability state. 370 // Accessors for the session's availability state.
366 bool IsAvailable() const { return availability_state_ == STATE_AVAILABLE; } 371 bool IsAvailable() const { return availability_state_ == STATE_AVAILABLE; }
367 bool IsGoingAway() const { return availability_state_ == STATE_GOING_AWAY; } 372 bool IsGoingAway() const { return availability_state_ == STATE_GOING_AWAY; }
368 bool IsDraining() const { return availability_state_ == STATE_DRAINING; } 373 bool IsDraining() const { return availability_state_ == STATE_DRAINING; }
369 374
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 // Used for posting asynchronous IO tasks. We use this even though 1199 // Used for posting asynchronous IO tasks. We use this even though
1195 // SpdySession is refcounted because we don't need to keep the SpdySession 1200 // SpdySession is refcounted because we don't need to keep the SpdySession
1196 // alive if the last reference is within a RunnableMethod. Just revoke the 1201 // alive if the last reference is within a RunnableMethod. Just revoke the
1197 // method. 1202 // method.
1198 base::WeakPtrFactory<SpdySession> weak_factory_; 1203 base::WeakPtrFactory<SpdySession> weak_factory_;
1199 }; 1204 };
1200 1205
1201 } // namespace net 1206 } // namespace net
1202 1207
1203 #endif // NET_SPDY_SPDY_SESSION_H_ 1208 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698