| 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 <cmath> | 9 #include <cmath> |
| 9 | 10 |
| 10 #include "base/ios/block_types.h" | 11 #include "base/ios/block_types.h" |
| 11 #import "base/ios/ns_error_util.h" | 12 #import "base/ios/ns_error_util.h" |
| 12 #include "base/ios/weak_nsobject.h" | 13 #include "base/ios/weak_nsobject.h" |
| 13 #include "base/json/json_reader.h" | 14 #include "base/json/json_reader.h" |
| 14 #include "base/json/json_writer.h" | 15 #include "base/json/json_writer.h" |
| 15 #include "base/json/string_escape.h" | 16 #include "base/json/string_escape.h" |
| 16 #include "base/logging.h" | 17 #include "base/logging.h" |
| 17 #include "base/mac/bundle_locations.h" | 18 #include "base/mac/bundle_locations.h" |
| (...skipping 3865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3883 if ([MIMEType isEqualToString:@"text/html"] || | 3884 if ([MIMEType isEqualToString:@"text/html"] || |
| 3884 [MIMEType isEqualToString:@"application/xhtml+xml"] || | 3885 [MIMEType isEqualToString:@"application/xhtml+xml"] || |
| 3885 [MIMEType isEqualToString:@"application/xml"]) { | 3886 [MIMEType isEqualToString:@"application/xml"]) { |
| 3886 return web::WEB_VIEW_DOCUMENT_TYPE_HTML; | 3887 return web::WEB_VIEW_DOCUMENT_TYPE_HTML; |
| 3887 } | 3888 } |
| 3888 | 3889 |
| 3889 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; | 3890 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; |
| 3890 } | 3891 } |
| 3891 | 3892 |
| 3892 @end | 3893 @end |
| OLD | NEW |