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

Side by Side Diff: net/url_request/url_request_intercepting_job_factory.h

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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef NET_URL_REQUEST_URL_REQUEST_INTERCEPTING_JOB_FACTORY_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_INTERCEPTING_JOB_FACTORY_H_
6 #define NET_URL_REQUEST_URL_REQUEST_INTERCEPTING_JOB_FACTORY_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_INTERCEPTING_JOB_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 URLRequestJob* MaybeInterceptRedirect( 51 URLRequestJob* MaybeInterceptRedirect(
52 URLRequest* request, 52 URLRequest* request,
53 NetworkDelegate* network_delegate, 53 NetworkDelegate* network_delegate,
54 const GURL& location) const override; 54 const GURL& location) const override;
55 55
56 URLRequestJob* MaybeInterceptResponse( 56 URLRequestJob* MaybeInterceptResponse(
57 URLRequest* request, 57 URLRequest* request,
58 NetworkDelegate* network_delegate) const override; 58 NetworkDelegate* network_delegate) const override;
59 59
60 bool IsHandledProtocol(const std::string& scheme) const override; 60 bool IsHandledProtocol(const std::string& scheme) const override;
61 bool IsHandledURL(const GURL& url) const override;
62 bool IsSafeRedirectTarget(const GURL& location) const override; 61 bool IsSafeRedirectTarget(const GURL& location) const override;
63 62
64 private: 63 private:
65 // |owning_| indicates if this object owns |job_factory_| and |interceptor_|. 64 // |owning_| indicates if this object owns |job_factory_| and |interceptor_|.
66 bool owning_; 65 bool owning_;
67 URLRequestJobFactory* job_factory_; 66 URLRequestJobFactory* job_factory_;
68 URLRequestInterceptor* interceptor_; 67 URLRequestInterceptor* interceptor_;
69 68
70 DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptingJobFactory); 69 DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptingJobFactory);
71 }; 70 };
72 71
73 } // namespace net 72 } // namespace net
74 73
75 #endif // NET_URL_REQUEST_URL_REQUEST_INTERCEPTING_JOB_FACTORY_H_ 74 #endif // NET_URL_REQUEST_URL_REQUEST_INTERCEPTING_JOB_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698