| 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 7536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7547 | 7547 |
| 7548 virtual void CancelRequest(RequestHandle request) { | 7548 virtual void CancelRequest(RequestHandle request) { |
| 7549 NOTREACHED(); | 7549 NOTREACHED(); |
| 7550 } | 7550 } |
| 7551 | 7551 |
| 7552 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE { | 7552 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE { |
| 7553 NOTREACHED(); | 7553 NOTREACHED(); |
| 7554 return LOAD_STATE_IDLE; | 7554 return LOAD_STATE_IDLE; |
| 7555 } | 7555 } |
| 7556 | 7556 |
| 7557 virtual LoadState GetLoadStateThreadSafe( | |
| 7558 RequestHandle request) const OVERRIDE { | |
| 7559 NOTREACHED(); | |
| 7560 return LOAD_STATE_IDLE; | |
| 7561 } | |
| 7562 | |
| 7563 virtual void CancelSetPacScript() { | 7557 virtual void CancelSetPacScript() { |
| 7564 NOTREACHED(); | 7558 NOTREACHED(); |
| 7565 } | 7559 } |
| 7566 | 7560 |
| 7567 virtual int SetPacScript(const scoped_refptr<ProxyResolverScriptData>&, | 7561 virtual int SetPacScript(const scoped_refptr<ProxyResolverScriptData>&, |
| 7568 const CompletionCallback& /*callback*/) { | 7562 const CompletionCallback& /*callback*/) { |
| 7569 return OK; | 7563 return OK; |
| 7570 } | 7564 } |
| 7571 | 7565 |
| 7572 const std::vector<GURL>& resolved() const { return resolved_; } | 7566 const std::vector<GURL>& resolved() const { return resolved_; } |
| (...skipping 2572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10145 trans2.Start(&request2, callback2.callback(), BoundNetLog())); | 10139 trans2.Start(&request2, callback2.callback(), BoundNetLog())); |
| 10146 MessageLoop::current()->RunUntilIdle(); | 10140 MessageLoop::current()->RunUntilIdle(); |
| 10147 data2->RunFor(3); | 10141 data2->RunFor(3); |
| 10148 | 10142 |
| 10149 ASSERT_TRUE(callback2.have_result()); | 10143 ASSERT_TRUE(callback2.have_result()); |
| 10150 EXPECT_EQ(OK, callback2.WaitForResult()); | 10144 EXPECT_EQ(OK, callback2.WaitForResult()); |
| 10151 EXPECT_TRUE(trans2.GetResponseInfo()->was_fetched_via_spdy); | 10145 EXPECT_TRUE(trans2.GetResponseInfo()->was_fetched_via_spdy); |
| 10152 } | 10146 } |
| 10153 | 10147 |
| 10154 } // namespace net | 10148 } // namespace net |
| OLD | NEW |