| 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; | |
| 37 | 36 |
| 38 private: | 37 private: |
| 39 typedef std::map<std::string, ProtocolHandler*> ProtocolHandlerMap; | 38 typedef std::map<std::string, ProtocolHandler*> ProtocolHandlerMap; |
| 40 | 39 |
| 41 ProtocolHandlerMap protocol_handler_map_; | 40 ProtocolHandlerMap protocol_handler_map_; |
| 42 | 41 |
| 43 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactoryImpl); | 42 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactoryImpl); |
| 44 }; | 43 }; |
| 45 | 44 |
| 46 } // namespace net | 45 } // namespace net |
| 47 | 46 |
| 48 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_ | 47 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_ |
| OLD | NEW |