| 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 #include "net/url_request/url_request_job_factory.h" | 5 #include "net/url_request/url_request_job_factory.h" |
| 6 | 6 |
| 7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util.h" |
| 8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 9 #include "net/base/load_flags.h" | 9 #include "net/base/load_flags.h" |
| 10 #include "net/url_request/url_request_job_manager.h" | 10 #include "net/url_request/url_request_job_manager.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 URLRequestJobFactory::ProtocolHandler::~ProtocolHandler() {} | 14 URLRequestJobFactory::ProtocolHandler::~ProtocolHandler() {} |
| 15 | 15 |
| 16 URLRequestJobFactory::Interceptor::~Interceptor() {} | 16 URLRequestJobFactory::Interceptor::~Interceptor() {} |
| 17 | 17 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 bool URLRequestJobFactory::IsHandledURL(const GURL& url) const { | 123 bool URLRequestJobFactory::IsHandledURL(const GURL& url) const { |
| 124 if (!url.is_valid()) { | 124 if (!url.is_valid()) { |
| 125 // We handle error cases. | 125 // We handle error cases. |
| 126 return true; | 126 return true; |
| 127 } | 127 } |
| 128 return IsHandledProtocol(url.scheme()); | 128 return IsHandledProtocol(url.scheme()); |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace net | 131 } // namespace net |
| OLD | NEW |