| 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/browser/frame_host/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "content/browser/permissions/permission_service_impl.h" | 34 #include "content/browser/permissions/permission_service_impl.h" |
| 35 #include "content/browser/presentation/presentation_service_impl.h" | 35 #include "content/browser/presentation/presentation_service_impl.h" |
| 36 #include "content/browser/renderer_host/input/input_router.h" | 36 #include "content/browser/renderer_host/input/input_router.h" |
| 37 #include "content/browser/renderer_host/input/timeout_monitor.h" | 37 #include "content/browser/renderer_host/input/timeout_monitor.h" |
| 38 #include "content/browser/renderer_host/render_process_host_impl.h" | 38 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 39 #include "content/browser/renderer_host/render_view_host_delegate.h" | 39 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 40 #include "content/browser/renderer_host/render_view_host_delegate_view.h" | 40 #include "content/browser/renderer_host/render_view_host_delegate_view.h" |
| 41 #include "content/browser/renderer_host/render_view_host_impl.h" | 41 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 42 #include "content/browser/renderer_host/render_widget_host_impl.h" | 42 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 43 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 43 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 44 #include "content/browser/service_worker/service_worker_provider_host.h" |
| 44 #include "content/common/accessibility_messages.h" | 45 #include "content/common/accessibility_messages.h" |
| 45 #include "content/common/frame_messages.h" | 46 #include "content/common/frame_messages.h" |
| 46 #include "content/common/input_messages.h" | 47 #include "content/common/input_messages.h" |
| 47 #include "content/common/inter_process_time_ticks_converter.h" | 48 #include "content/common/inter_process_time_ticks_converter.h" |
| 48 #include "content/common/navigation_params.h" | 49 #include "content/common/navigation_params.h" |
| 49 #include "content/common/render_frame_setup.mojom.h" | 50 #include "content/common/render_frame_setup.mojom.h" |
| 51 #include "content/common/service_worker/service_worker_types.h" |
| 50 #include "content/common/site_isolation_policy.h" | 52 #include "content/common/site_isolation_policy.h" |
| 51 #include "content/common/swapped_out_messages.h" | 53 #include "content/common/swapped_out_messages.h" |
| 52 #include "content/public/browser/ax_event_notification_details.h" | 54 #include "content/public/browser/ax_event_notification_details.h" |
| 53 #include "content/public/browser/browser_accessibility_state.h" | 55 #include "content/public/browser/browser_accessibility_state.h" |
| 54 #include "content/public/browser/browser_context.h" | 56 #include "content/public/browser/browser_context.h" |
| 55 #include "content/public/browser/browser_plugin_guest_manager.h" | 57 #include "content/public/browser/browser_plugin_guest_manager.h" |
| 56 #include "content/public/browser/browser_thread.h" | 58 #include "content/public/browser/browser_thread.h" |
| 57 #include "content/public/browser/content_browser_client.h" | 59 #include "content/public/browser/content_browser_client.h" |
| 58 #include "content/public/browser/permission_manager.h" | 60 #include "content/public/browser/permission_manager.h" |
| 59 #include "content/public/browser/permission_type.h" | 61 #include "content/public/browser/permission_type.h" |
| (...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 navigation_handle_->GetURL() != validated_params.url) { | 906 navigation_handle_->GetURL() != validated_params.url) { |
| 905 navigation_handle_.reset(); | 907 navigation_handle_.reset(); |
| 906 } | 908 } |
| 907 | 909 |
| 908 // Synchronous renderer-initiated navigations will send a | 910 // Synchronous renderer-initiated navigations will send a |
| 909 // DidCommitProvisionalLoad IPC without a prior DidStartProvisionalLoad | 911 // DidCommitProvisionalLoad IPC without a prior DidStartProvisionalLoad |
| 910 // message. | 912 // message. |
| 911 if (!navigation_handle_) { | 913 if (!navigation_handle_) { |
| 912 navigation_handle_ = NavigationHandleImpl::Create( | 914 navigation_handle_ = NavigationHandleImpl::Create( |
| 913 validated_params.url, frame_tree_node_->IsMainFrame(), | 915 validated_params.url, frame_tree_node_->IsMainFrame(), |
| 914 frame_tree_node_->navigator()->GetDelegate()); | 916 frame_tree_node_->navigator()->GetDelegate(), |
| 917 kInvalidServiceWorkerProviderId); |
| 915 } | 918 } |
| 916 | 919 |
| 917 accessibility_reset_count_ = 0; | 920 accessibility_reset_count_ = 0; |
| 918 frame_tree_node()->navigator()->DidNavigate(this, validated_params); | 921 frame_tree_node()->navigator()->DidNavigate(this, validated_params); |
| 919 | 922 |
| 920 // For a top-level frame, there are potential security concerns associated | 923 // For a top-level frame, there are potential security concerns associated |
| 921 // with displaying graphics from a previously loaded page after the URL in | 924 // with displaying graphics from a previously loaded page after the URL in |
| 922 // the omnibar has been changed. It is unappealing to clear the page | 925 // the omnibar has been changed. It is unappealing to clear the page |
| 923 // immediately, but if the renderer is taking a long time to issue any | 926 // immediately, but if the renderer is taking a long time to issue any |
| 924 // compositor output (possibly because of script deliberately creating this | 927 // compositor output (possibly because of script deliberately creating this |
| (...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2248 BrowserPluginInstanceIDToAXTreeID(value))); | 2251 BrowserPluginInstanceIDToAXTreeID(value))); |
| 2249 break; | 2252 break; |
| 2250 case AX_CONTENT_INT_ATTRIBUTE_LAST: | 2253 case AX_CONTENT_INT_ATTRIBUTE_LAST: |
| 2251 NOTREACHED(); | 2254 NOTREACHED(); |
| 2252 break; | 2255 break; |
| 2253 } | 2256 } |
| 2254 } | 2257 } |
| 2255 } | 2258 } |
| 2256 | 2259 |
| 2257 } // namespace content | 2260 } // namespace content |
| OLD | NEW |