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/http/http_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
6 | 6 |
7 #include <math.h> // ceil | 7 #include <math.h> // ceil |
8 #include <stdarg.h> | 8 #include <stdarg.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 8065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8076 | 8076 |
8077 virtual void CancelRequest(RequestHandle request) { | 8077 virtual void CancelRequest(RequestHandle request) { |
8078 NOTREACHED(); | 8078 NOTREACHED(); |
8079 } | 8079 } |
8080 | 8080 |
8081 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE { | 8081 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE { |
8082 NOTREACHED(); | 8082 NOTREACHED(); |
8083 return LOAD_STATE_IDLE; | 8083 return LOAD_STATE_IDLE; |
8084 } | 8084 } |
8085 | 8085 |
8086 virtual LoadState GetLoadStateThreadSafe( | |
8087 RequestHandle request) const OVERRIDE { | |
8088 NOTREACHED(); | |
8089 return LOAD_STATE_IDLE; | |
8090 } | |
8091 | |
8092 virtual void CancelSetPacScript() { | 8086 virtual void CancelSetPacScript() { |
8093 NOTREACHED(); | 8087 NOTREACHED(); |
8094 } | 8088 } |
8095 | 8089 |
8096 virtual int SetPacScript(const scoped_refptr<ProxyResolverScriptData>&, | 8090 virtual int SetPacScript(const scoped_refptr<ProxyResolverScriptData>&, |
8097 const CompletionCallback& /*callback*/) { | 8091 const CompletionCallback& /*callback*/) { |
8098 return OK; | 8092 return OK; |
8099 } | 8093 } |
8100 | 8094 |
8101 const std::vector<GURL>& resolved() const { return resolved_; } | 8095 const std::vector<GURL>& resolved() const { return resolved_; } |
(...skipping 2599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10701 trans2.Start(&request2, callback2.callback(), BoundNetLog())); | 10695 trans2.Start(&request2, callback2.callback(), BoundNetLog())); |
10702 MessageLoop::current()->RunUntilIdle(); | 10696 MessageLoop::current()->RunUntilIdle(); |
10703 data2->RunFor(3); | 10697 data2->RunFor(3); |
10704 | 10698 |
10705 ASSERT_TRUE(callback2.have_result()); | 10699 ASSERT_TRUE(callback2.have_result()); |
10706 EXPECT_EQ(OK, callback2.WaitForResult()); | 10700 EXPECT_EQ(OK, callback2.WaitForResult()); |
10707 EXPECT_TRUE(trans2.GetResponseInfo()->was_fetched_via_spdy); | 10701 EXPECT_TRUE(trans2.GetResponseInfo()->was_fetched_via_spdy); |
10708 } | 10702 } |
10709 | 10703 |
10710 } // namespace net | 10704 } // namespace net |
OLD | NEW |