| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_JOB_FACTORY_IMPL_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 bool SetProtocolHandler(const std::string& scheme, | 26 bool SetProtocolHandler(const std::string& scheme, |
| 27 ProtocolHandler* protocol_handler); | 27 ProtocolHandler* protocol_handler); |
| 28 | 28 |
| 29 // URLRequestJobFactory implementation | 29 // URLRequestJobFactory implementation |
| 30 virtual URLRequestJob* MaybeCreateJobWithProtocolHandler( | 30 virtual URLRequestJob* MaybeCreateJobWithProtocolHandler( |
| 31 const std::string& scheme, | 31 const std::string& scheme, |
| 32 URLRequest* request, | 32 URLRequest* request, |
| 33 NetworkDelegate* network_delegate) const OVERRIDE; | 33 NetworkDelegate* network_delegate) const OVERRIDE; |
| 34 virtual bool IsHandledProtocol(const std::string& scheme) const OVERRIDE; | 34 virtual bool IsHandledProtocol(const std::string& scheme) const OVERRIDE; |
| 35 virtual bool IsHandledURL(const GURL& url) const OVERRIDE; | 35 virtual bool IsHandledURL(const GURL& url) const OVERRIDE; |
| 36 virtual bool IsSafeRedirectTarget(const GURL& location) const OVERRIDE; |
| 36 | 37 |
| 37 private: | 38 private: |
| 38 typedef std::map<std::string, ProtocolHandler*> ProtocolHandlerMap; | 39 typedef std::map<std::string, ProtocolHandler*> ProtocolHandlerMap; |
| 39 | 40 |
| 40 ProtocolHandlerMap protocol_handler_map_; | 41 ProtocolHandlerMap protocol_handler_map_; |
| 41 | 42 |
| 42 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactoryImpl); | 43 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactoryImpl); |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 } // namespace net | 46 } // namespace net |
| 46 | 47 |
| 47 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_ | 48 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_ |
| OLD | NEW |