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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 URLRequest* request, | 51 URLRequest* request, |
52 NetworkDelegate* network_delegate, | 52 NetworkDelegate* network_delegate, |
53 const GURL& location) const = 0; | 53 const GURL& location) const = 0; |
54 | 54 |
55 virtual URLRequestJob* MaybeInterceptResponse( | 55 virtual URLRequestJob* MaybeInterceptResponse( |
56 URLRequest* request, | 56 URLRequest* request, |
57 NetworkDelegate* network_delegate) const = 0; | 57 NetworkDelegate* network_delegate) const = 0; |
58 | 58 |
59 virtual bool IsHandledProtocol(const std::string& scheme) const = 0; | 59 virtual bool IsHandledProtocol(const std::string& scheme) const = 0; |
60 | 60 |
61 virtual bool IsHandledURL(const GURL& url) const = 0; | |
62 | |
63 virtual bool IsSafeRedirectTarget(const GURL& location) const = 0; | 61 virtual bool IsSafeRedirectTarget(const GURL& location) const = 0; |
64 | 62 |
65 private: | 63 private: |
66 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactory); | 64 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactory); |
67 }; | 65 }; |
68 | 66 |
69 } // namespace net | 67 } // namespace net |
70 | 68 |
71 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_ | 69 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_ |
OLD | NEW |