Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: ios/web/net/web_http_protocol_handler_delegate.mm

Issue 1458073002: Import url_scheme_util.h instead of including it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ios/chrome/browser/autofill/form_suggestion_controller.mm ('k') | ios/web/web_state/ui/crw_ui_web_view_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698