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

Side by Side Diff: chrome/browser/custom_handlers/protocol_handler_registry.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 (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 #ifndef CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_ 5 #ifndef CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_
6 #define CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_ 6 #define CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 net::URLRequestJob* MaybeInterceptRedirect( 86 net::URLRequestJob* MaybeInterceptRedirect(
87 net::URLRequest* request, 87 net::URLRequest* request,
88 net::NetworkDelegate* network_delegate, 88 net::NetworkDelegate* network_delegate,
89 const GURL& location) const override; 89 const GURL& location) const override;
90 90
91 net::URLRequestJob* MaybeInterceptResponse( 91 net::URLRequestJob* MaybeInterceptResponse(
92 net::URLRequest* request, 92 net::URLRequest* request,
93 net::NetworkDelegate* network_delegate) const override; 93 net::NetworkDelegate* network_delegate) const override;
94 94
95 bool IsHandledProtocol(const std::string& scheme) const override; 95 bool IsHandledProtocol(const std::string& scheme) const override;
96 bool IsHandledURL(const GURL& url) const override;
97 bool IsSafeRedirectTarget(const GURL& location) const override; 96 bool IsSafeRedirectTarget(const GURL& location) const override;
98 97
99 private: 98 private:
100 // When JobInterceptorFactory decides to pass on particular requests, 99 // When JobInterceptorFactory decides to pass on particular requests,
101 // they're forwarded to the chained URLRequestJobFactory, |job_factory_|. 100 // they're forwarded to the chained URLRequestJobFactory, |job_factory_|.
102 std::unique_ptr<URLRequestJobFactory> job_factory_; 101 std::unique_ptr<URLRequestJobFactory> job_factory_;
103 // |io_thread_delegate_| performs the actual job creation decisions by 102 // |io_thread_delegate_| performs the actual job creation decisions by
104 // mirroring the ProtocolHandlerRegistry on the IO thread. 103 // mirroring the ProtocolHandlerRegistry on the IO thread.
105 scoped_refptr<IOThreadDelegate> io_thread_delegate_; 104 scoped_refptr<IOThreadDelegate> io_thread_delegate_;
106 105
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 // are posted to the IO thread where updates are applied to this object. 363 // are posted to the IO thread where updates are applied to this object.
365 scoped_refptr<IOThreadDelegate> io_thread_delegate_; 364 scoped_refptr<IOThreadDelegate> io_thread_delegate_;
366 365
367 // Makes it possible to invalidate the callback for the 366 // Makes it possible to invalidate the callback for the
368 // DefaultProtocolClientWorker. 367 // DefaultProtocolClientWorker.
369 base::WeakPtrFactory<ProtocolHandlerRegistry> weak_ptr_factory_; 368 base::WeakPtrFactory<ProtocolHandlerRegistry> weak_ptr_factory_;
370 369
371 DISALLOW_COPY_AND_ASSIGN(ProtocolHandlerRegistry); 370 DISALLOW_COPY_AND_ASSIGN(ProtocolHandlerRegistry);
372 }; 371 };
373 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_ 372 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698