| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "content/child/webmessageportchannel_impl.h" | 45 #include "content/child/webmessageportchannel_impl.h" |
| 46 #include "content/common/content_constants_internal.h" | 46 #include "content/common/content_constants_internal.h" |
| 47 #include "content/common/content_switches_internal.h" | 47 #include "content/common/content_switches_internal.h" |
| 48 #include "content/common/dom_storage/dom_storage_types.h" | 48 #include "content/common/dom_storage/dom_storage_types.h" |
| 49 #include "content/common/drag_messages.h" | 49 #include "content/common/drag_messages.h" |
| 50 #include "content/common/frame_messages.h" | 50 #include "content/common/frame_messages.h" |
| 51 #include "content/common/frame_replication_state.h" | 51 #include "content/common/frame_replication_state.h" |
| 52 #include "content/common/input_messages.h" | 52 #include "content/common/input_messages.h" |
| 53 #include "content/common/page_messages.h" | 53 #include "content/common/page_messages.h" |
| 54 #include "content/common/site_isolation_policy.h" | 54 #include "content/common/site_isolation_policy.h" |
| 55 #include "content/common/ssl_status_serialization.h" | |
| 56 #include "content/common/view_messages.h" | 55 #include "content/common/view_messages.h" |
| 57 #include "content/public/common/bindings_policy.h" | 56 #include "content/public/common/bindings_policy.h" |
| 58 #include "content/public/common/content_client.h" | 57 #include "content/public/common/content_client.h" |
| 59 #include "content/public/common/content_constants.h" | 58 #include "content/public/common/content_constants.h" |
| 60 #include "content/public/common/content_switches.h" | 59 #include "content/public/common/content_switches.h" |
| 61 #include "content/public/common/drop_data.h" | 60 #include "content/public/common/drop_data.h" |
| 62 #include "content/public/common/favicon_url.h" | 61 #include "content/public/common/favicon_url.h" |
| 63 #include "content/public/common/page_importance_signals.h" | 62 #include "content/public/common/page_importance_signals.h" |
| 64 #include "content/public/common/page_state.h" | 63 #include "content/public/common/page_state.h" |
| 65 #include "content/public/common/page_zoom.h" | 64 #include "content/public/common/page_zoom.h" |
| 66 #include "content/public/common/ssl_status.h" | |
| 67 #include "content/public/common/three_d_api_types.h" | 65 #include "content/public/common/three_d_api_types.h" |
| 68 #include "content/public/common/url_constants.h" | 66 #include "content/public/common/url_constants.h" |
| 69 #include "content/public/common/web_preferences.h" | 67 #include "content/public/common/web_preferences.h" |
| 70 #include "content/public/renderer/content_renderer_client.h" | 68 #include "content/public/renderer/content_renderer_client.h" |
| 71 #include "content/public/renderer/document_state.h" | 69 #include "content/public/renderer/document_state.h" |
| 72 #include "content/public/renderer/navigation_state.h" | 70 #include "content/public/renderer/navigation_state.h" |
| 73 #include "content/public/renderer/render_view_observer.h" | 71 #include "content/public/renderer/render_view_observer.h" |
| 74 #include "content/public/renderer/render_view_visitor.h" | 72 #include "content/public/renderer/render_view_visitor.h" |
| 75 #include "content/renderer/browser_plugin/browser_plugin.h" | 73 #include "content/renderer/browser_plugin/browser_plugin.h" |
| 76 #include "content/renderer/browser_plugin/browser_plugin_manager.h" | 74 #include "content/renderer/browser_plugin/browser_plugin_manager.h" |
| (...skipping 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2100 const std::string& value) { | 2098 const std::string& value) { |
| 2101 EditCommands edit_commands; | 2099 EditCommands edit_commands; |
| 2102 edit_commands.push_back(EditCommand(name, value)); | 2100 edit_commands.push_back(EditCommand(name, value)); |
| 2103 OnSetEditCommandsForNextKeyEvent(edit_commands); | 2101 OnSetEditCommandsForNextKeyEvent(edit_commands); |
| 2104 } | 2102 } |
| 2105 | 2103 |
| 2106 void RenderViewImpl::ClearEditCommands() { | 2104 void RenderViewImpl::ClearEditCommands() { |
| 2107 edit_commands_.clear(); | 2105 edit_commands_.clear(); |
| 2108 } | 2106 } |
| 2109 | 2107 |
| 2110 SSLStatus RenderViewImpl::GetSSLStatusOfFrame(blink::WebFrame* frame) const { | |
| 2111 std::string security_info; | |
| 2112 if (frame && frame->dataSource()) | |
| 2113 security_info = frame->dataSource()->response().securityInfo(); | |
| 2114 | |
| 2115 SSLStatus result; | |
| 2116 CHECK(DeserializeSecurityInfo(security_info, &result)); | |
| 2117 return result; | |
| 2118 } | |
| 2119 | |
| 2120 const std::string& RenderViewImpl::GetAcceptLanguages() const { | 2108 const std::string& RenderViewImpl::GetAcceptLanguages() const { |
| 2121 return renderer_preferences_.accept_languages; | 2109 return renderer_preferences_.accept_languages; |
| 2122 } | 2110 } |
| 2123 | 2111 |
| 2124 void RenderViewImpl::ConvertViewportToWindowViaWidget(blink::WebRect* rect) { | 2112 void RenderViewImpl::ConvertViewportToWindowViaWidget(blink::WebRect* rect) { |
| 2125 convertViewportToWindow(rect); | 2113 convertViewportToWindow(rect); |
| 2126 } | 2114 } |
| 2127 | 2115 |
| 2128 gfx::RectF RenderViewImpl::ElementBoundsInWindow( | 2116 gfx::RectF RenderViewImpl::ElementBoundsInWindow( |
| 2129 const blink::WebElement& element) { | 2117 const blink::WebElement& element) { |
| (...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3101 return render_frame->focused_pepper_plugin(); | 3089 return render_frame->focused_pepper_plugin(); |
| 3102 } | 3090 } |
| 3103 frame = frame->traverseNext(false); | 3091 frame = frame->traverseNext(false); |
| 3104 } | 3092 } |
| 3105 | 3093 |
| 3106 return nullptr; | 3094 return nullptr; |
| 3107 } | 3095 } |
| 3108 #endif | 3096 #endif |
| 3109 | 3097 |
| 3110 } // namespace content | 3098 } // namespace content |
| OLD | NEW |