Chromium Code Reviews| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1105 return opener_frame->GetWebFrame(); | 1106 return opener_frame->GetWebFrame(); |
| 1106 | 1107 |
| 1107 return nullptr; | 1108 return nullptr; |
| 1108 } | 1109 } |
| 1109 | 1110 |
| 1110 blink::WebURL RenderFrameImpl::OverrideFlashEmbedWithHTML( | 1111 blink::WebURL RenderFrameImpl::OverrideFlashEmbedWithHTML( |
| 1111 const blink::WebURL& url) { | 1112 const blink::WebURL& url) { |
| 1112 return GetContentClient()->renderer()->OverrideFlashEmbedWithHTML(url); | 1113 return GetContentClient()->renderer()->OverrideFlashEmbedWithHTML(url); |
| 1113 } | 1114 } |
| 1114 | 1115 |
| 1116 void RenderFrameImpl::QueueReport(const GURL& url, | |
| 1117 const std::string& group, | |
| 1118 const std::string& type, | |
| 1119 std::unique_ptr<base::Value> body) { | |
| 1120 mojom::ReportingServiceProxyPtr service; | |
| 1121 GetRemoteInterfaces()->GetInterface(&service); | |
| 1122 service->QueueReport(url, group, type, std::move(body)); | |
|
jam
2017/06/05 21:03:44
blink can connect directly to mojo services, no ne
Julia Tuttle
2017/06/15 20:33:32
Okay!
jam
2017/06/23 16:39:41
note: the mojom should then move to third_party/We
| |
| 1123 } | |
| 1124 | |
| 1115 // RenderFrameImpl ---------------------------------------------------------- | 1125 // RenderFrameImpl ---------------------------------------------------------- |
| 1116 RenderFrameImpl::RenderFrameImpl(const CreateParams& params) | 1126 RenderFrameImpl::RenderFrameImpl(const CreateParams& params) |
| 1117 : frame_(NULL), | 1127 : frame_(NULL), |
| 1118 is_main_frame_(true), | 1128 is_main_frame_(true), |
| 1119 unique_name_frame_adapter_(this), | 1129 unique_name_frame_adapter_(this), |
| 1120 unique_name_helper_(&unique_name_frame_adapter_), | 1130 unique_name_helper_(&unique_name_frame_adapter_), |
| 1121 in_browser_initiated_detach_(false), | 1131 in_browser_initiated_detach_(false), |
| 1122 in_frame_tree_(false), | 1132 in_frame_tree_(false), |
| 1123 render_view_(params.render_view), | 1133 render_view_(params.render_view), |
| 1124 routing_id_(params.routing_id), | 1134 routing_id_(params.routing_id), |
| (...skipping 5639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6764 policy(info.default_policy), | 6774 policy(info.default_policy), |
| 6765 replaces_current_history_item(info.replaces_current_history_item), | 6775 replaces_current_history_item(info.replaces_current_history_item), |
| 6766 history_navigation_in_new_child_frame( | 6776 history_navigation_in_new_child_frame( |
| 6767 info.is_history_navigation_in_new_child_frame), | 6777 info.is_history_navigation_in_new_child_frame), |
| 6768 client_redirect(info.is_client_redirect), | 6778 client_redirect(info.is_client_redirect), |
| 6769 cache_disabled(info.is_cache_disabled), | 6779 cache_disabled(info.is_cache_disabled), |
| 6770 form(info.form), | 6780 form(info.form), |
| 6771 source_location(info.source_location) {} | 6781 source_location(info.source_location) {} |
| 6772 | 6782 |
| 6773 } // namespace content | 6783 } // namespace content |
| OLD | NEW |