| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 4694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4705 if (!default_value) | 4705 if (!default_value) |
| 4706 return false; | 4706 return false; |
| 4707 | 4707 |
| 4708 bool blocked = true; | 4708 bool blocked = true; |
| 4709 Send(new FrameHostMsg_Are3DAPIsBlocked( | 4709 Send(new FrameHostMsg_Are3DAPIsBlocked( |
| 4710 routing_id_, url::Origin(frame_->Top()->GetSecurityOrigin()).GetURL(), | 4710 routing_id_, url::Origin(frame_->Top()->GetSecurityOrigin()).GetURL(), |
| 4711 THREE_D_API_TYPE_WEBGL, &blocked)); | 4711 THREE_D_API_TYPE_WEBGL, &blocked)); |
| 4712 return !blocked; | 4712 return !blocked; |
| 4713 } | 4713 } |
| 4714 | 4714 |
| 4715 bool RenderFrameImpl::AllowContentInitiatedDataUrlNavigations( |
| 4716 const blink::WebURL& url) { |
| 4717 // Error pages can navigate to data URLs. |
| 4718 return url.GetString() == kUnreachableWebDataURL; |
| 4719 } |
| 4720 |
| 4715 blink::WebScreenOrientationClient* | 4721 blink::WebScreenOrientationClient* |
| 4716 RenderFrameImpl::GetWebScreenOrientationClient() { | 4722 RenderFrameImpl::GetWebScreenOrientationClient() { |
| 4717 if (!screen_orientation_dispatcher_) | 4723 if (!screen_orientation_dispatcher_) |
| 4718 screen_orientation_dispatcher_ = new ScreenOrientationDispatcher(this); | 4724 screen_orientation_dispatcher_ = new ScreenOrientationDispatcher(this); |
| 4719 return screen_orientation_dispatcher_; | 4725 return screen_orientation_dispatcher_; |
| 4720 } | 4726 } |
| 4721 | 4727 |
| 4722 void RenderFrameImpl::PostAccessibilityEvent(const blink::WebAXObject& obj, | 4728 void RenderFrameImpl::PostAccessibilityEvent(const blink::WebAXObject& obj, |
| 4723 blink::WebAXEvent event) { | 4729 blink::WebAXEvent event) { |
| 4724 HandleWebAccessibilityEvent(obj, event); | 4730 HandleWebAccessibilityEvent(obj, event); |
| (...skipping 2271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6996 policy(info.default_policy), | 7002 policy(info.default_policy), |
| 6997 replaces_current_history_item(info.replaces_current_history_item), | 7003 replaces_current_history_item(info.replaces_current_history_item), |
| 6998 history_navigation_in_new_child_frame( | 7004 history_navigation_in_new_child_frame( |
| 6999 info.is_history_navigation_in_new_child_frame), | 7005 info.is_history_navigation_in_new_child_frame), |
| 7000 client_redirect(info.is_client_redirect), | 7006 client_redirect(info.is_client_redirect), |
| 7001 cache_disabled(info.is_cache_disabled), | 7007 cache_disabled(info.is_cache_disabled), |
| 7002 form(info.form), | 7008 form(info.form), |
| 7003 source_location(info.source_location) {} | 7009 source_location(info.source_location) {} |
| 7004 | 7010 |
| 7005 } // namespace content | 7011 } // namespace content |
| OLD | NEW |