Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2881593002: Reporting: Plumb into RenderFrame via Mojo (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 25 matching lines...) Expand all
36 #include "content/browser/frame_host/navigator.h" 36 #include "content/browser/frame_host/navigator.h"
37 #include "content/browser/frame_host/navigator_impl.h" 37 #include "content/browser/frame_host/navigator_impl.h"
38 #include "content/browser/frame_host/render_frame_host_delegate.h" 38 #include "content/browser/frame_host/render_frame_host_delegate.h"
39 #include "content/browser/frame_host/render_frame_proxy_host.h" 39 #include "content/browser/frame_host/render_frame_proxy_host.h"
40 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" 40 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
41 #include "content/browser/installedapp/installed_app_provider_impl_default.h" 41 #include "content/browser/installedapp/installed_app_provider_impl_default.h"
42 #include "content/browser/keyboard_lock/keyboard_lock_service_impl.h" 42 #include "content/browser/keyboard_lock/keyboard_lock_service_impl.h"
43 #include "content/browser/loader/resource_dispatcher_host_impl.h" 43 #include "content/browser/loader/resource_dispatcher_host_impl.h"
44 #include "content/browser/media/media_interface_proxy.h" 44 #include "content/browser/media/media_interface_proxy.h"
45 #include "content/browser/media/session/media_session_service_impl.h" 45 #include "content/browser/media/session/media_session_service_impl.h"
46 #include "content/browser/net/reporting_service_proxy.h"
46 #include "content/browser/permissions/permission_service_context.h" 47 #include "content/browser/permissions/permission_service_context.h"
47 #include "content/browser/permissions/permission_service_impl.h" 48 #include "content/browser/permissions/permission_service_impl.h"
48 #include "content/browser/presentation/presentation_service_impl.h" 49 #include "content/browser/presentation/presentation_service_impl.h"
49 #include "content/browser/renderer_host/dip_util.h" 50 #include "content/browser/renderer_host/dip_util.h"
50 #include "content/browser/renderer_host/input/input_router_impl.h" 51 #include "content/browser/renderer_host/input/input_router_impl.h"
51 #include "content/browser/renderer_host/input/timeout_monitor.h" 52 #include "content/browser/renderer_host/input/timeout_monitor.h"
52 #include "content/browser/renderer_host/media/media_devices_dispatcher_host.h" 53 #include "content/browser/renderer_host/media/media_devices_dispatcher_host.h"
53 #include "content/browser/renderer_host/render_process_host_impl.h" 54 #include "content/browser/renderer_host/render_process_host_impl.h"
54 #include "content/browser/renderer_host/render_view_host_delegate.h" 55 #include "content/browser/renderer_host/render_view_host_delegate.h"
55 #include "content/browser/renderer_host/render_view_host_delegate_view.h" 56 #include "content/browser/renderer_host/render_view_host_delegate_view.h"
56 #include "content/browser/renderer_host/render_view_host_impl.h" 57 #include "content/browser/renderer_host/render_view_host_impl.h"
57 #include "content/browser/renderer_host/render_widget_host_delegate.h" 58 #include "content/browser/renderer_host/render_widget_host_delegate.h"
58 #include "content/browser/renderer_host/render_widget_host_impl.h" 59 #include "content/browser/renderer_host/render_widget_host_impl.h"
59 #include "content/browser/renderer_host/render_widget_host_view_base.h" 60 #include "content/browser/renderer_host/render_widget_host_view_base.h"
60 #include "content/browser/shared_worker/shared_worker_service_impl.h" 61 #include "content/browser/shared_worker/shared_worker_service_impl.h"
61 #include "content/browser/websockets/websocket_manager.h" 62 #include "content/browser/websockets/websocket_manager.h"
62 #include "content/browser/webui/url_data_manager_backend.h" 63 #include "content/browser/webui/url_data_manager_backend.h"
63 #include "content/browser/webui/web_ui_controller_factory_registry.h" 64 #include "content/browser/webui/web_ui_controller_factory_registry.h"
64 #include "content/browser/webui/web_ui_url_loader_factory.h" 65 #include "content/browser/webui/web_ui_url_loader_factory.h"
65 #include "content/common/accessibility_messages.h" 66 #include "content/common/accessibility_messages.h"
66 #include "content/common/associated_interface_provider_impl.h" 67 #include "content/common/associated_interface_provider_impl.h"
67 #include "content/common/associated_interface_registry_impl.h" 68 #include "content/common/associated_interface_registry_impl.h"
68 #include "content/common/associated_interfaces.mojom.h" 69 #include "content/common/associated_interfaces.mojom.h"
69 #include "content/common/content_security_policy/content_security_policy.h" 70 #include "content/common/content_security_policy/content_security_policy.h"
70 #include "content/common/frame_messages.h" 71 #include "content/common/frame_messages.h"
71 #include "content/common/frame_owner_properties.h" 72 #include "content/common/frame_owner_properties.h"
72 #include "content/common/input_messages.h" 73 #include "content/common/input_messages.h"
73 #include "content/common/inter_process_time_ticks_converter.h" 74 #include "content/common/inter_process_time_ticks_converter.h"
74 #include "content/common/navigation_params.h" 75 #include "content/common/navigation_params.h"
76 #include "content/common/net/reporting.mojom.h"
75 #include "content/common/render_message_filter.mojom.h" 77 #include "content/common/render_message_filter.mojom.h"
76 #include "content/common/renderer.mojom.h" 78 #include "content/common/renderer.mojom.h"
77 #include "content/common/site_isolation_policy.h" 79 #include "content/common/site_isolation_policy.h"
78 #include "content/common/swapped_out_messages.h" 80 #include "content/common/swapped_out_messages.h"
79 #include "content/public/browser/ax_event_notification_details.h" 81 #include "content/public/browser/ax_event_notification_details.h"
80 #include "content/public/browser/browser_accessibility_state.h" 82 #include "content/public/browser/browser_accessibility_state.h"
81 #include "content/public/browser/browser_context.h" 83 #include "content/public/browser/browser_context.h"
82 #include "content/public/browser/browser_plugin_guest_manager.h" 84 #include "content/public/browser/browser_plugin_guest_manager.h"
83 #include "content/public/browser/browser_thread.h" 85 #include "content/public/browser/browser_thread.h"
84 #include "content/public/browser/content_browser_client.h" 86 #include "content/public/browser/content_browser_client.h"
(...skipping 2707 matching lines...) Expand 10 before | Expand all | Expand 10 after
2792 #endif 2794 #endif
2793 2795
2794 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) 2796 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
2795 GetInterfaceRegistry()->AddInterface(base::Bind( 2797 GetInterfaceRegistry()->AddInterface(base::Bind(
2796 &RemoterFactoryImpl::Bind, GetProcess()->GetID(), GetRoutingID())); 2798 &RemoterFactoryImpl::Bind, GetProcess()->GetID(), GetRoutingID()));
2797 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) 2799 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING)
2798 2800
2799 GetInterfaceRegistry()->AddInterface(base::Bind( 2801 GetInterfaceRegistry()->AddInterface(base::Bind(
2800 &KeyboardLockServiceImpl::CreateMojoService)); 2802 &KeyboardLockServiceImpl::CreateMojoService));
2801 2803
2804 GetInterfaceRegistry()->AddInterface<mojom::ReportingServiceProxy>(
2805 base::Bind(&CreateReportingServiceProxy, site_instance_));
2806
2802 GetContentClient()->browser()->ExposeInterfacesToFrame(GetInterfaceRegistry(), 2807 GetContentClient()->browser()->ExposeInterfacesToFrame(GetInterfaceRegistry(),
2803 this); 2808 this);
2804 } 2809 }
2805 2810
2806 void RenderFrameHostImpl::ResetWaitingState() { 2811 void RenderFrameHostImpl::ResetWaitingState() {
2807 DCHECK(is_active()); 2812 DCHECK(is_active());
2808 2813
2809 // Whenever we reset the RFH state, we should not be waiting for beforeunload 2814 // Whenever we reset the RFH state, we should not be waiting for beforeunload
2810 // or close acks. We clear them here to be safe, since they can cause 2815 // or close acks. We clear them here to be safe, since they can cause
2811 // navigations to be ignored in OnDidCommitProvisionalLoad. 2816 // navigations to be ignored in OnDidCommitProvisionalLoad.
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
3970 } 3975 }
3971 3976
3972 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame( 3977 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame(
3973 const std::string& interface_name, 3978 const std::string& interface_name,
3974 mojo::ScopedMessagePipeHandle pipe) { 3979 mojo::ScopedMessagePipeHandle pipe) {
3975 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe)); 3980 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe));
3976 } 3981 }
3977 #endif 3982 #endif
3978 3983
3979 } // namespace content 3984 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698