OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ios/web/net/web_http_protocol_handler_delegate.h" | 5 #include "ios/web/net/web_http_protocol_handler_delegate.h" |
6 | 6 |
7 #include "ios/web/public/url_scheme_util.h" | 7 #import "ios/web/public/url_scheme_util.h" |
8 #include "ios/web/public/web_client.h" | 8 #include "ios/web/public/web_client.h" |
9 #import "ios/web/web_state/ui/crw_static_file_web_view.h" | 9 #import "ios/web/web_state/ui/crw_static_file_web_view.h" |
10 #include "net/url_request/url_request_context_getter.h" | 10 #include "net/url_request/url_request_context_getter.h" |
11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 bool IsAppSpecificScheme(NSURL* url) { | 15 bool IsAppSpecificScheme(NSURL* url) { |
16 NSString* scheme = [url scheme]; | 16 NSString* scheme = [url scheme]; |
17 if (![scheme length]) | 17 if (![scheme length]) |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 (IsAppSpecificScheme([request URL]) && | 49 (IsAppSpecificScheme([request URL]) && |
50 IsAppSpecificScheme([request mainDocumentURL])); | 50 IsAppSpecificScheme([request mainDocumentURL])); |
51 } | 51 } |
52 | 52 |
53 net::URLRequestContextGetter* | 53 net::URLRequestContextGetter* |
54 WebHTTPProtocolHandlerDelegate::GetDefaultURLRequestContext() { | 54 WebHTTPProtocolHandlerDelegate::GetDefaultURLRequestContext() { |
55 return default_getter_.get(); | 55 return default_getter_.get(); |
56 } | 56 } |
57 | 57 |
58 } // namespace web | 58 } // namespace web |
OLD | NEW |