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 "chrome/browser/prerender/prerender_test_utils.h" | 5 #include "chrome/browser/prerender/prerender_test_utils.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 void BlockRequest() override {} | 233 void BlockRequest() override {} |
234 | 234 |
235 void RunExternalProtocolDialog(const GURL& url, | 235 void RunExternalProtocolDialog(const GURL& url, |
236 int render_process_host_id, | 236 int render_process_host_id, |
237 int routing_id, | 237 int routing_id, |
238 ui::PageTransition page_transition, | 238 ui::PageTransition page_transition, |
239 bool has_user_gesture) override { | 239 bool has_user_gesture) override { |
240 NOTREACHED(); | 240 NOTREACHED(); |
241 } | 241 } |
242 | 242 |
243 void LaunchUrlWithoutSecurityCheck(const GURL& url) override { NOTREACHED(); } | 243 void LaunchUrlWithoutSecurityCheck( |
| 244 const GURL& url, |
| 245 content::WebContents* web_contents) override { |
| 246 NOTREACHED(); |
| 247 } |
244 | 248 |
245 void FinishedProcessingCheck() override { NOTREACHED(); } | 249 void FinishedProcessingCheck() override { NOTREACHED(); } |
246 }; | 250 }; |
247 | 251 |
248 } // namespace | 252 } // namespace |
249 | 253 |
250 RequestCounter::RequestCounter() : count_(0), expected_count_(-1) {} | 254 RequestCounter::RequestCounter() : count_(0), expected_count_(-1) {} |
251 | 255 |
252 RequestCounter::~RequestCounter() {} | 256 RequestCounter::~RequestCounter() {} |
253 | 257 |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 776 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
773 std::unique_ptr<net::URLRequestInterceptor> interceptor( | 777 std::unique_ptr<net::URLRequestInterceptor> interceptor( |
774 new HangingFirstRequestInterceptor(file, callback)); | 778 new HangingFirstRequestInterceptor(file, callback)); |
775 net::URLRequestFilter::GetInstance()->AddUrlInterceptor( | 779 net::URLRequestFilter::GetInstance()->AddUrlInterceptor( |
776 url, std::move(interceptor)); | 780 url, std::move(interceptor)); |
777 } | 781 } |
778 | 782 |
779 } // namespace test_utils | 783 } // namespace test_utils |
780 | 784 |
781 } // namespace prerender | 785 } // namespace prerender |
OLD | NEW |