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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 #import "ios/web/web_state/ui/crw_wk_web_view_web_controller.h" | 89 #import "ios/web/web_state/ui/crw_wk_web_view_web_controller.h" |
90 #import "ios/web/web_state/ui/wk_web_view_configuration_provider.h" | 90 #import "ios/web/web_state/ui/wk_web_view_configuration_provider.h" |
91 #import "ios/web/web_state/web_controller_observer_bridge.h" | 91 #import "ios/web/web_state/web_controller_observer_bridge.h" |
92 #include "ios/web/web_state/web_state_facade_delegate.h" | 92 #include "ios/web/web_state/web_state_facade_delegate.h" |
93 #import "ios/web/web_state/web_state_impl.h" | 93 #import "ios/web/web_state/web_state_impl.h" |
94 #import "ios/web/web_state/web_view_internal_creation_util.h" | 94 #import "ios/web/web_state/web_view_internal_creation_util.h" |
95 #import "ios/web/web_state/wk_web_view_security_util.h" | 95 #import "ios/web/web_state/wk_web_view_security_util.h" |
96 #import "ios/web/webui/crw_web_ui_manager.h" | 96 #import "ios/web/webui/crw_web_ui_manager.h" |
97 #import "net/base/mac/url_conversions.h" | 97 #import "net/base/mac/url_conversions.h" |
98 #include "net/base/net_errors.h" | 98 #include "net/base/net_errors.h" |
99 #import "ui/base/ios/cru_context_menu_holder.h" | |
100 #include "ui/base/page_transition_types.h" | 99 #include "ui/base/page_transition_types.h" |
101 #include "url/gurl.h" | 100 #include "url/gurl.h" |
102 #include "url/url_constants.h" | 101 #include "url/url_constants.h" |
103 | 102 |
104 using base::UserMetricsAction; | 103 using base::UserMetricsAction; |
105 using web::NavigationManager; | 104 using web::NavigationManager; |
106 using web::NavigationManagerImpl; | 105 using web::NavigationManagerImpl; |
107 using web::WebState; | 106 using web::WebState; |
108 using web::WebStateImpl; | 107 using web::WebStateImpl; |
109 | 108 |
(...skipping 5417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5527 } | 5526 } |
5528 | 5527 |
5529 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; | 5528 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; |
5530 } | 5529 } |
5531 | 5530 |
5532 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { | 5531 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { |
5533 return [action.request valueForHTTPHeaderField:@"Referer"]; | 5532 return [action.request valueForHTTPHeaderField:@"Referer"]; |
5534 } | 5533 } |
5535 | 5534 |
5536 @end | 5535 @end |
OLD | NEW |