| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #import "ios/web/web_state/ui/crw_web_controller.h" | 5 #import "ios/web/web_state/ui/crw_web_controller.h" |
| 6 | 6 |
| 7 #import <objc/runtime.h> | 7 #import <objc/runtime.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <cmath> | 10 #include <cmath> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "components/url_formatter/url_formatter.h" | 34 #include "components/url_formatter/url_formatter.h" |
| 35 #import "ios/net/nsurlrequest_util.h" | 35 #import "ios/net/nsurlrequest_util.h" |
| 36 #include "ios/public/provider/web/web_ui_ios.h" | 36 #include "ios/public/provider/web/web_ui_ios.h" |
| 37 #import "ios/web/history_state_util.h" | 37 #import "ios/web/history_state_util.h" |
| 38 #include "ios/web/interstitials/web_interstitial_impl.h" | 38 #include "ios/web/interstitials/web_interstitial_impl.h" |
| 39 #import "ios/web/navigation/crw_session_certificate_policy_manager.h" | 39 #import "ios/web/navigation/crw_session_certificate_policy_manager.h" |
| 40 #import "ios/web/navigation/crw_session_controller.h" | 40 #import "ios/web/navigation/crw_session_controller.h" |
| 41 #import "ios/web/navigation/crw_session_entry.h" | 41 #import "ios/web/navigation/crw_session_entry.h" |
| 42 #import "ios/web/navigation/navigation_item_impl.h" | 42 #import "ios/web/navigation/navigation_item_impl.h" |
| 43 #import "ios/web/navigation/navigation_manager_impl.h" | 43 #import "ios/web/navigation/navigation_manager_impl.h" |
| 44 #import "ios/web/navigation/web_load_params.h" | |
| 45 #include "ios/web/net/request_group_util.h" | 44 #include "ios/web/net/request_group_util.h" |
| 46 #include "ios/web/public/browser_state.h" | 45 #include "ios/web/public/browser_state.h" |
| 47 #include "ios/web/public/favicon_url.h" | 46 #include "ios/web/public/favicon_url.h" |
| 47 #import "ios/web/public/navigation_manager.h" |
| 48 #include "ios/web/public/navigation_item.h" | 48 #include "ios/web/public/navigation_item.h" |
| 49 #include "ios/web/public/referrer.h" | 49 #include "ios/web/public/referrer.h" |
| 50 #include "ios/web/public/referrer_util.h" | 50 #include "ios/web/public/referrer_util.h" |
| 51 #include "ios/web/public/ssl_status.h" | 51 #include "ios/web/public/ssl_status.h" |
| 52 #import "ios/web/public/url_scheme_util.h" | 52 #import "ios/web/public/url_scheme_util.h" |
| 53 #include "ios/web/public/url_util.h" | 53 #include "ios/web/public/url_util.h" |
| 54 #include "ios/web/public/user_metrics.h" | 54 #include "ios/web/public/user_metrics.h" |
| 55 #include "ios/web/public/web_client.h" | 55 #include "ios/web/public/web_client.h" |
| 56 #include "ios/web/public/web_kit_constants.h" | 56 #include "ios/web/public/web_kit_constants.h" |
| 57 #include "ios/web/public/web_state/credential.h" | 57 #include "ios/web/public/web_state/credential.h" |
| (...skipping 3758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3816 if ([MIMEType isEqualToString:@"text/html"] || | 3816 if ([MIMEType isEqualToString:@"text/html"] || |
| 3817 [MIMEType isEqualToString:@"application/xhtml+xml"] || | 3817 [MIMEType isEqualToString:@"application/xhtml+xml"] || |
| 3818 [MIMEType isEqualToString:@"application/xml"]) { | 3818 [MIMEType isEqualToString:@"application/xml"]) { |
| 3819 return web::WEB_VIEW_DOCUMENT_TYPE_HTML; | 3819 return web::WEB_VIEW_DOCUMENT_TYPE_HTML; |
| 3820 } | 3820 } |
| 3821 | 3821 |
| 3822 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; | 3822 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; |
| 3823 } | 3823 } |
| 3824 | 3824 |
| 3825 @end | 3825 @end |
| OLD | NEW |