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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2881593002: Reporting: Plumb into RenderFrame via Mojo (Closed)
Patch Set: rebase, make requested changes, format 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/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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #include "content/common/content_constants_internal.h" 57 #include "content/common/content_constants_internal.h"
58 #include "content/common/content_security_policy/csp_context.h" 58 #include "content/common/content_security_policy/csp_context.h"
59 #include "content/common/content_security_policy_header.h" 59 #include "content/common/content_security_policy_header.h"
60 #include "content/common/download/mhtml_save_status.h" 60 #include "content/common/download/mhtml_save_status.h"
61 #include "content/common/edit_command.h" 61 #include "content/common/edit_command.h"
62 #include "content/common/frame_messages.h" 62 #include "content/common/frame_messages.h"
63 #include "content/common/frame_owner_properties.h" 63 #include "content/common/frame_owner_properties.h"
64 #include "content/common/frame_replication_state.h" 64 #include "content/common/frame_replication_state.h"
65 #include "content/common/input_messages.h" 65 #include "content/common/input_messages.h"
66 #include "content/common/navigation_params.h" 66 #include "content/common/navigation_params.h"
67 #include "content/common/net/reporting.mojom.h"
67 #include "content/common/page_messages.h" 68 #include "content/common/page_messages.h"
68 #include "content/common/savable_subframe.h" 69 #include "content/common/savable_subframe.h"
69 #include "content/common/service_worker/service_worker_types.h" 70 #include "content/common/service_worker/service_worker_types.h"
70 #include "content/common/site_isolation_policy.h" 71 #include "content/common/site_isolation_policy.h"
71 #include "content/common/swapped_out_messages.h" 72 #include "content/common/swapped_out_messages.h"
72 #include "content/common/view_messages.h" 73 #include "content/common/view_messages.h"
73 #include "content/common/worker_url_loader_factory_provider.mojom.h" 74 #include "content/common/worker_url_loader_factory_provider.mojom.h"
74 #include "content/public/common/appcache_info.h" 75 #include "content/public/common/appcache_info.h"
75 #include "content/public/common/associated_interface_provider.h" 76 #include "content/public/common/associated_interface_provider.h"
76 #include "content/public/common/bindings_policy.h" 77 #include "content/public/common/bindings_policy.h"
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 return opener_frame->GetWebFrame(); 1096 return opener_frame->GetWebFrame();
1096 1097
1097 return nullptr; 1098 return nullptr;
1098 } 1099 }
1099 1100
1100 blink::WebURL RenderFrameImpl::OverrideFlashEmbedWithHTML( 1101 blink::WebURL RenderFrameImpl::OverrideFlashEmbedWithHTML(
1101 const blink::WebURL& url) { 1102 const blink::WebURL& url) {
1102 return GetContentClient()->renderer()->OverrideFlashEmbedWithHTML(url); 1103 return GetContentClient()->renderer()->OverrideFlashEmbedWithHTML(url);
1103 } 1104 }
1104 1105
1106 void RenderFrameImpl::QueueReport(const GURL& url,
1107 const std::string& group,
1108 const std::string& type,
1109 std::unique_ptr<base::Value> body) {
1110 mojom::ReportingServiceProxyPtr service;
1111 GetRemoteInterfaces()->GetInterface(&service);
1112 service->QueueReport(url, group, type, std::move(body));
1113 }
1114
1105 // RenderFrameImpl ---------------------------------------------------------- 1115 // RenderFrameImpl ----------------------------------------------------------
1106 RenderFrameImpl::RenderFrameImpl(const CreateParams& params) 1116 RenderFrameImpl::RenderFrameImpl(const CreateParams& params)
1107 : frame_(NULL), 1117 : frame_(NULL),
1108 is_main_frame_(true), 1118 is_main_frame_(true),
1109 unique_name_helper_(this), 1119 unique_name_helper_(this),
1110 in_browser_initiated_detach_(false), 1120 in_browser_initiated_detach_(false),
1111 in_frame_tree_(false), 1121 in_frame_tree_(false),
1112 render_view_(params.render_view), 1122 render_view_(params.render_view),
1113 routing_id_(params.routing_id), 1123 routing_id_(params.routing_id),
1114 proxy_routing_id_(MSG_ROUTING_NONE), 1124 proxy_routing_id_(MSG_ROUTING_NONE),
(...skipping 5948 matching lines...) Expand 10 before | Expand all | Expand 10 after
7063 policy(info.default_policy), 7073 policy(info.default_policy),
7064 replaces_current_history_item(info.replaces_current_history_item), 7074 replaces_current_history_item(info.replaces_current_history_item),
7065 history_navigation_in_new_child_frame( 7075 history_navigation_in_new_child_frame(
7066 info.is_history_navigation_in_new_child_frame), 7076 info.is_history_navigation_in_new_child_frame),
7067 client_redirect(info.is_client_redirect), 7077 client_redirect(info.is_client_redirect),
7068 cache_disabled(info.is_cache_disabled), 7078 cache_disabled(info.is_cache_disabled),
7069 form(info.form), 7079 form(info.form),
7070 source_location(info.source_location) {} 7080 source_location(info.source_location) {}
7071 7081
7072 } // namespace content 7082 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698