Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: chrome/browser/prerender/prerender_test_utils.cc

Issue 2538353002: fix external protocol handling for OOPIFs (Closed)
Patch Set: remove unnecessary include Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc ('k') | chrome/browser/ui/cocoa/external_protocol_dialog.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698