| 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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 "GET", | 710 "GET", |
| 711 ":path", | 711 ":path", |
| 712 req.get(), | 712 req.get(), |
| 713 ":host", | 713 ":host", |
| 714 host.get(), | 714 host.get(), |
| 715 ":scheme", | 715 ":scheme", |
| 716 scheme.get(), | 716 scheme.get(), |
| 717 ":version", | 717 ":version", |
| 718 "HTTP/1.1" | 718 "HTTP/1.1" |
| 719 }; | 719 }; |
| 720 return ConstructSpdyPacket( | 720 return ConstructSpdyFrame( |
| 721 syn_headers, NULL, 0, headers, arraysize(headers)/2); | 721 syn_headers, NULL, 0, headers, arraysize(headers)/2); |
| 722 } | 722 } |
| 723 | 723 |
| 724 // TODO(rch): When openssl supports server bound certifictes, this | 724 // TODO(rch): When openssl supports server bound certifictes, this |
| 725 // guard can be removed | 725 // guard can be removed |
| 726 #if !defined(USE_OPENSSL) | 726 #if !defined(USE_OPENSSL) |
| 727 // Test that if we request a resource for a new origin on a session that | 727 // Test that if we request a resource for a new origin on a session that |
| 728 // used domain bound certificates, that we send a CREDENTIAL frame for | 728 // used domain bound certificates, that we send a CREDENTIAL frame for |
| 729 // the new domain before we send the new request. | 729 // the new domain before we send the new request. |
| 730 void SpdyHttpStreamSpdy3Test::TestSendCredentials( | 730 void SpdyHttpStreamSpdy3Test::TestSendCredentials( |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 | 863 |
| 864 sequenced_worker_pool->Shutdown(); | 864 sequenced_worker_pool->Shutdown(); |
| 865 } | 865 } |
| 866 | 866 |
| 867 #endif // !defined(USE_OPENSSL) | 867 #endif // !defined(USE_OPENSSL) |
| 868 | 868 |
| 869 // TODO(willchan): Write a longer test for SpdyStream that exercises all | 869 // TODO(willchan): Write a longer test for SpdyStream that exercises all |
| 870 // methods. | 870 // methods. |
| 871 | 871 |
| 872 } // namespace net | 872 } // namespace net |
| OLD | NEW |