| OLD | NEW |
| 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 ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_JOB_FACTORY_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_JOB_FACTORY_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_JOB_FACTORY_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_JOB_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "net/url_request/url_request_job_factory.h" | 9 #include "net/url_request/url_request_job_factory.h" |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 bool SetProtocolHandler(const std::string& scheme, | 28 bool SetProtocolHandler(const std::string& scheme, |
| 29 ProtocolHandler* protocol_handler); | 29 ProtocolHandler* protocol_handler); |
| 30 | 30 |
| 31 // net::URLRequestJobFactory implementation. | 31 // net::URLRequestJobFactory implementation. |
| 32 virtual net::URLRequestJob* MaybeCreateJobWithProtocolHandler( | 32 virtual net::URLRequestJob* MaybeCreateJobWithProtocolHandler( |
| 33 const std::string& scheme, | 33 const std::string& scheme, |
| 34 net::URLRequest* request, | 34 net::URLRequest* request, |
| 35 net::NetworkDelegate* network_delegate) const OVERRIDE; | 35 net::NetworkDelegate* network_delegate) const OVERRIDE; |
| 36 virtual bool IsHandledProtocol(const std::string& scheme) const OVERRIDE; | 36 virtual bool IsHandledProtocol(const std::string& scheme) const OVERRIDE; |
| 37 virtual bool IsHandledURL(const GURL& url) const OVERRIDE; | 37 virtual bool IsHandledURL(const GURL& url) const OVERRIDE; |
| 38 virtual bool IsSafeRedirectTarget(const GURL& location) const OVERRIDE; |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 // By default calls are forwarded to this factory, to avoid having to | 41 // By default calls are forwarded to this factory, to avoid having to |
| 41 // subclass an existing implementation class. | 42 // subclass an existing implementation class. |
| 42 scoped_ptr<net::URLRequestJobFactoryImpl> next_factory_; | 43 scoped_ptr<net::URLRequestJobFactoryImpl> next_factory_; |
| 43 | 44 |
| 44 DISALLOW_COPY_AND_ASSIGN(AwURLRequestJobFactory); | 45 DISALLOW_COPY_AND_ASSIGN(AwURLRequestJobFactory); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 } // namespace android_webview | 48 } // namespace android_webview |
| 48 | 49 |
| 49 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_JOB_FACTORY_H_ | 50 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_JOB_FACTORY_H_ |
| OLD | NEW |