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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 #import "ios/web/web_state/ui/crw_web_controller+protected.h" | 85 #import "ios/web/web_state/ui/crw_web_controller+protected.h" |
86 #import "ios/web/web_state/ui/crw_web_controller_container_view.h" | 86 #import "ios/web/web_state/ui/crw_web_controller_container_view.h" |
87 #import "ios/web/web_state/ui/crw_wk_web_view_web_controller.h" | 87 #import "ios/web/web_state/ui/crw_wk_web_view_web_controller.h" |
88 #import "ios/web/web_state/web_controller_observer_bridge.h" | 88 #import "ios/web/web_state/web_controller_observer_bridge.h" |
89 #include "ios/web/web_state/web_state_facade_delegate.h" | 89 #include "ios/web/web_state/web_state_facade_delegate.h" |
90 #import "ios/web/web_state/web_state_impl.h" | 90 #import "ios/web/web_state/web_state_impl.h" |
91 #import "ios/web/web_state/wk_web_view_security_util.h" | 91 #import "ios/web/web_state/wk_web_view_security_util.h" |
92 #import "ios/web/webui/crw_web_ui_manager.h" | 92 #import "ios/web/webui/crw_web_ui_manager.h" |
93 #import "net/base/mac/url_conversions.h" | 93 #import "net/base/mac/url_conversions.h" |
94 #include "net/base/net_errors.h" | 94 #include "net/base/net_errors.h" |
95 #import "ui/base/ios/cru_context_menu_holder.h" | |
96 #include "ui/base/page_transition_types.h" | 95 #include "ui/base/page_transition_types.h" |
97 #include "url/gurl.h" | 96 #include "url/gurl.h" |
98 #include "url/url_constants.h" | 97 #include "url/url_constants.h" |
99 | 98 |
100 using base::UserMetricsAction; | 99 using base::UserMetricsAction; |
101 using web::NavigationManager; | 100 using web::NavigationManager; |
102 using web::NavigationManagerImpl; | 101 using web::NavigationManagerImpl; |
103 using web::WebState; | 102 using web::WebState; |
104 using web::WebStateImpl; | 103 using web::WebStateImpl; |
105 | 104 |
(...skipping 4656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4762 } | 4761 } |
4763 | 4762 |
4764 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; | 4763 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; |
4765 } | 4764 } |
4766 | 4765 |
4767 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { | 4766 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { |
4768 return [action.request valueForHTTPHeaderField:@"Referer"]; | 4767 return [action.request valueForHTTPHeaderField:@"Referer"]; |
4769 } | 4768 } |
4770 | 4769 |
4771 @end | 4770 @end |
OLD | NEW |