| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 void BlockRequest() override {} | 201 void BlockRequest() override {} |
| 202 | 202 |
| 203 void RunExternalProtocolDialog(const GURL& url, | 203 void RunExternalProtocolDialog(const GURL& url, |
| 204 int render_process_host_id, | 204 int render_process_host_id, |
| 205 int routing_id, | 205 int routing_id, |
| 206 ui::PageTransition page_transition, | 206 ui::PageTransition page_transition, |
| 207 bool has_user_gesture) override { | 207 bool has_user_gesture) override { |
| 208 NOTREACHED(); | 208 NOTREACHED(); |
| 209 } | 209 } |
| 210 | 210 |
| 211 void LaunchUrlWithoutSecurityCheck(const GURL& url) override { NOTREACHED(); } | 211 void LaunchUrlWithoutSecurityCheck( |
| 212 const GURL& url, |
| 213 content::WebContents* web_contents) override { |
| 214 NOTREACHED(); |
| 215 } |
| 212 | 216 |
| 213 void FinishedProcessingCheck() override { NOTREACHED(); } | 217 void FinishedProcessingCheck() override { NOTREACHED(); } |
| 214 }; | 218 }; |
| 215 | 219 |
| 216 } // namespace | 220 } // namespace |
| 217 | 221 |
| 218 RequestCounter::RequestCounter() : count_(0), expected_count_(-1) {} | 222 RequestCounter::RequestCounter() : count_(0), expected_count_(-1) {} |
| 219 | 223 |
| 220 RequestCounter::~RequestCounter() {} | 224 RequestCounter::~RequestCounter() {} |
| 221 | 225 |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 745 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 742 std::unique_ptr<net::URLRequestInterceptor> interceptor( | 746 std::unique_ptr<net::URLRequestInterceptor> interceptor( |
| 743 new HangingFirstRequestInterceptor(file, callback)); | 747 new HangingFirstRequestInterceptor(file, callback)); |
| 744 net::URLRequestFilter::GetInstance()->AddUrlInterceptor( | 748 net::URLRequestFilter::GetInstance()->AddUrlInterceptor( |
| 745 url, std::move(interceptor)); | 749 url, std::move(interceptor)); |
| 746 } | 750 } |
| 747 | 751 |
| 748 } // namespace test_utils | 752 } // namespace test_utils |
| 749 | 753 |
| 750 } // namespace prerender | 754 } // namespace prerender |
| OLD | NEW |