| OLD | NEW |
| 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 #include "net/spdy/spdy_http_stream.h" | 5 #include "net/spdy/spdy_http_stream.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/threading/sequenced_worker_pool.h" | 8 #include "base/threading/sequenced_worker_pool.h" |
| 9 #include "crypto/ec_private_key.h" | 9 #include "crypto/ec_private_key.h" |
| 10 #include "crypto/ec_signature_creator.h" | 10 #include "crypto/ec_signature_creator.h" |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 *cert, 2, &credential); | 521 *cert, 2, &credential); |
| 522 | 522 |
| 523 cert->assign(credential.certs[0]); | 523 cert->assign(credential.certs[0]); |
| 524 proof->assign(credential.proof); | 524 proof->assign(credential.proof); |
| 525 } | 525 } |
| 526 | 526 |
| 527 } // namespace | 527 } // namespace |
| 528 | 528 |
| 529 // Constructs a standard SPDY SYN_STREAM frame for a GET request with | 529 // Constructs a standard SPDY SYN_STREAM frame for a GET request with |
| 530 // a credential set. | 530 // a credential set. |
| 531 SpdyFrame* ConstructCredentialRequestFrame(int slot, const GURL& url, | 531 SpdyFrame* ConstructCredentialRequestFrame(size_t slot, const GURL& url, |
| 532 int stream_id) { | 532 SpdyStreamId stream_id) { |
| 533 const SpdyHeaderInfo syn_headers = { | 533 const SpdyHeaderInfo syn_headers = { |
| 534 SYN_STREAM, | 534 SYN_STREAM, |
| 535 stream_id, | 535 stream_id, |
| 536 0, | 536 0, |
| 537 ConvertRequestPriorityToSpdyPriority(LOWEST, 3), | 537 ConvertRequestPriorityToSpdyPriority(LOWEST, 3), |
| 538 slot, | 538 slot, |
| 539 CONTROL_FLAG_FIN, | 539 CONTROL_FLAG_FIN, |
| 540 false, | 540 false, |
| 541 INVALID, | 541 INVALID, |
| 542 NULL, | 542 NULL, |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 | 720 |
| 721 sequenced_worker_pool->Shutdown(); | 721 sequenced_worker_pool->Shutdown(); |
| 722 } | 722 } |
| 723 | 723 |
| 724 #endif // !defined(USE_OPENSSL) | 724 #endif // !defined(USE_OPENSSL) |
| 725 | 725 |
| 726 // TODO(willchan): Write a longer test for SpdyStream that exercises all | 726 // TODO(willchan): Write a longer test for SpdyStream that exercises all |
| 727 // methods. | 727 // methods. |
| 728 | 728 |
| 729 } // namespace net | 729 } // namespace net |
| OLD | NEW |