OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/browser/loader/resource_loader.h" | 5 #include "content/browser/loader/resource_loader.h" |
6 | 6 |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "content/browser/browser_thread_impl.h" | 8 #include "content/browser/browser_thread_impl.h" |
9 #include "content/browser/loader/resource_loader_delegate.h" | 9 #include "content/browser/loader/resource_loader_delegate.h" |
10 #include "content/public/browser/resource_request_info.h" | 10 #include "content/public/browser/resource_request_info.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 virtual bool OnResponseStarted(int request_id, | 87 virtual bool OnResponseStarted(int request_id, |
88 ResourceResponse* response, | 88 ResourceResponse* response, |
89 bool* defer) OVERRIDE { return true; } | 89 bool* defer) OVERRIDE { return true; } |
90 | 90 |
91 virtual bool OnWillStart(int request_id, | 91 virtual bool OnWillStart(int request_id, |
92 const GURL& url, | 92 const GURL& url, |
93 bool* defer) OVERRIDE { | 93 bool* defer) OVERRIDE { |
94 return true; | 94 return true; |
95 } | 95 } |
96 | 96 |
| 97 virtual bool OnBeforeNetworkStart(int request_id, |
| 98 const GURL& url, |
| 99 bool* defer) OVERRIDE { |
| 100 return true; |
| 101 } |
| 102 |
97 virtual bool OnWillRead(int request_id, | 103 virtual bool OnWillRead(int request_id, |
98 scoped_refptr<net::IOBuffer>* buf, | 104 scoped_refptr<net::IOBuffer>* buf, |
99 int* buf_size, | 105 int* buf_size, |
100 int min_size) OVERRIDE { | 106 int min_size) OVERRIDE { |
101 return true; | 107 return true; |
102 } | 108 } |
103 | 109 |
104 virtual bool OnReadCompleted(int request_id, | 110 virtual bool OnReadCompleted(int request_id, |
105 int bytes_read, | 111 int bytes_read, |
106 bool* defer) OVERRIDE { | 112 bool* defer) OVERRIDE { |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 // Restore the original content browser client. | 313 // Restore the original content browser client. |
308 SetBrowserClientForTesting(old_client); | 314 SetBrowserClientForTesting(old_client); |
309 | 315 |
310 // Check if the SelectClientCertificate was called on the content browser | 316 // Check if the SelectClientCertificate was called on the content browser |
311 // client. | 317 // client. |
312 EXPECT_EQ(1, test_client.call_count()); | 318 EXPECT_EQ(1, test_client.call_count()); |
313 EXPECT_EQ(net::CertificateList(), test_client.passed_certs()); | 319 EXPECT_EQ(net::CertificateList(), test_client.passed_certs()); |
314 } | 320 } |
315 | 321 |
316 } // namespace content | 322 } // namespace content |
OLD | NEW |