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_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 }; | 40 }; |
41 | 41 |
42 URLRequestJobFactory(); | 42 URLRequestJobFactory(); |
43 virtual ~URLRequestJobFactory(); | 43 virtual ~URLRequestJobFactory(); |
44 | 44 |
45 virtual URLRequestJob* MaybeCreateJobWithProtocolHandler( | 45 virtual URLRequestJob* MaybeCreateJobWithProtocolHandler( |
46 const std::string& scheme, | 46 const std::string& scheme, |
47 URLRequest* request, | 47 URLRequest* request, |
48 NetworkDelegate* network_delegate) const = 0; | 48 NetworkDelegate* network_delegate) const = 0; |
49 | 49 |
| 50 virtual URLRequestJob* MaybeInterceptRedirect( |
| 51 URLRequest* request, |
| 52 NetworkDelegate* network_delegate, |
| 53 const GURL& location) const = 0; |
| 54 |
| 55 virtual URLRequestJob* MaybeInterceptResponse( |
| 56 URLRequest* request, |
| 57 NetworkDelegate* network_delegate) const = 0; |
| 58 |
50 virtual bool IsHandledProtocol(const std::string& scheme) const = 0; | 59 virtual bool IsHandledProtocol(const std::string& scheme) const = 0; |
51 | 60 |
52 virtual bool IsHandledURL(const GURL& url) const = 0; | 61 virtual bool IsHandledURL(const GURL& url) const = 0; |
53 | 62 |
54 virtual bool IsSafeRedirectTarget(const GURL& location) const = 0; | 63 virtual bool IsSafeRedirectTarget(const GURL& location) const = 0; |
55 | 64 |
56 private: | 65 private: |
57 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactory); | 66 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactory); |
58 }; | 67 }; |
59 | 68 |
60 } // namespace net | 69 } // namespace net |
61 | 70 |
62 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_ | 71 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_ |
OLD | NEW |