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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_unittest.cc

Issue 2783343002: Remove URLRequestJobFactory::IsHandledURL. (Closed)
Patch Set: More fixes..... Created 3 years, 8 months 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 const GURL& location) const override; 587 const GURL& location) const override;
588 588
589 net::URLRequestJob* MaybeInterceptResponse( 589 net::URLRequestJob* MaybeInterceptResponse(
590 net::URLRequest* request, 590 net::URLRequest* request,
591 net::NetworkDelegate* network_delegate) const override; 591 net::NetworkDelegate* network_delegate) const override;
592 592
593 bool IsHandledProtocol(const std::string& scheme) const override { 593 bool IsHandledProtocol(const std::string& scheme) const override {
594 return supported_schemes_.count(scheme) > 0; 594 return supported_schemes_.count(scheme) > 0;
595 } 595 }
596 596
597 bool IsHandledURL(const GURL& url) const override {
598 return supported_schemes_.count(url.scheme()) > 0;
599 }
600
601 bool IsSafeRedirectTarget(const GURL& location) const override { 597 bool IsSafeRedirectTarget(const GURL& location) const override {
602 return false; 598 return false;
603 } 599 }
604 600
605 private: 601 private:
606 ResourceDispatcherHostTest* test_fixture_; 602 ResourceDispatcherHostTest* test_fixture_;
607 bool hang_after_start_; 603 bool hang_after_start_;
608 bool delay_start_; 604 bool delay_start_;
609 bool delay_complete_; 605 bool delay_complete_;
610 bool must_not_read_; 606 bool must_not_read_;
(...skipping 3313 matching lines...) Expand 10 before | Expand all | Expand 10 after
3924 return nullptr; 3920 return nullptr;
3925 } 3921 }
3926 3922
3927 net::URLRequestJob* TestURLRequestJobFactory::MaybeInterceptResponse( 3923 net::URLRequestJob* TestURLRequestJobFactory::MaybeInterceptResponse(
3928 net::URLRequest* request, 3924 net::URLRequest* request,
3929 net::NetworkDelegate* network_delegate) const { 3925 net::NetworkDelegate* network_delegate) const {
3930 return nullptr; 3926 return nullptr;
3931 } 3927 }
3932 3928
3933 } // namespace content 3929 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698