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 #import "ios/web/net/web_http_protocol_handler_delegate.h" |
6 | 6 |
7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
8 | 8 |
9 #import "ios/web/public/url_scheme_util.h" | 9 #import "ios/web/public/url_scheme_util.h" |
10 #include "ios/web/public/web_client.h" | 10 #import "ios/web/public/web_client.h" |
11 #include "net/url_request/url_request_context_getter.h" | 11 #include "net/url_request/url_request_context_getter.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 #if !defined(__has_feature) || !__has_feature(objc_arc) | 14 #if !defined(__has_feature) || !__has_feature(objc_arc) |
15 #error "This file requires ARC support." | 15 #error "This file requires ARC support." |
16 #endif | 16 #endif |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 bool IsAppSpecificScheme(NSURL* url) { | 20 bool IsAppSpecificScheme(NSURL* url) { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 (IsAppSpecificScheme([request URL]) && | 66 (IsAppSpecificScheme([request URL]) && |
67 IsAppSpecificScheme([request mainDocumentURL])); | 67 IsAppSpecificScheme([request mainDocumentURL])); |
68 } | 68 } |
69 | 69 |
70 net::URLRequestContextGetter* | 70 net::URLRequestContextGetter* |
71 WebHTTPProtocolHandlerDelegate::GetDefaultURLRequestContext() { | 71 WebHTTPProtocolHandlerDelegate::GetDefaultURLRequestContext() { |
72 return default_getter_.get(); | 72 return default_getter_.get(); |
73 } | 73 } |
74 | 74 |
75 } // namespace web | 75 } // namespace web |
OLD | NEW |