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 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 #include "base/time/time.h" | 23 #include "base/time/time.h" |
| 24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
| 25 #include "content/browser/accessibility/browser_accessibility_manager.h" | 25 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 26 #include "content/browser/bad_message.h" | 26 #include "content/browser/bad_message.h" |
| 27 #include "content/browser/loader/global_routing_id.h" | 27 #include "content/browser/loader/global_routing_id.h" |
| 28 #include "content/browser/site_instance_impl.h" | 28 #include "content/browser/site_instance_impl.h" |
| 29 #include "content/browser/webui/web_ui_impl.h" | 29 #include "content/browser/webui/web_ui_impl.h" |
| 30 #include "content/common/accessibility_mode_enums.h" | 30 #include "content/common/accessibility_mode_enums.h" |
| 31 #include "content/common/ax_content_node_data.h" | 31 #include "content/common/ax_content_node_data.h" |
| 32 #include "content/common/content_export.h" | 32 #include "content/common/content_export.h" |
| 33 #include "content/common/content_security_policy/csp_policy.h" | 33 #include "content/common/content_security_policy/csp_context.h" |
| 34 #include "content/common/download/mhtml_save_status.h" | 34 #include "content/common/download/mhtml_save_status.h" |
| 35 #include "content/common/frame.mojom.h" | 35 #include "content/common/frame.mojom.h" |
| 36 #include "content/common/frame_message_enums.h" | 36 #include "content/common/frame_message_enums.h" |
| 37 #include "content/common/frame_replication_state.h" | 37 #include "content/common/frame_replication_state.h" |
| 38 #include "content/common/image_downloader/image_downloader.mojom.h" | 38 #include "content/common/image_downloader/image_downloader.mojom.h" |
| 39 #include "content/common/navigation_params.h" | 39 #include "content/common/navigation_params.h" |
| 40 #include "content/public/browser/render_frame_host.h" | 40 #include "content/public/browser/render_frame_host.h" |
| 41 #include "content/public/common/javascript_dialog_type.h" | 41 #include "content/public/common/javascript_dialog_type.h" |
| 42 #include "content/public/common/previews_state.h" | 42 #include "content/public/common/previews_state.h" |
| 43 #include "media/mojo/interfaces/interface_factory.mojom.h" | 43 #include "media/mojo/interfaces/interface_factory.mojom.h" |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 550 bool is_view_source); | 550 bool is_view_source); |
| 551 | 551 |
| 552 // PlzNavigate | 552 // PlzNavigate |
| 553 // Indicates that a navigation failed and that this RenderFrame should display | 553 // Indicates that a navigation failed and that this RenderFrame should display |
| 554 // an error page. | 554 // an error page. |
| 555 void FailedNavigation(const CommonNavigationParams& common_params, | 555 void FailedNavigation(const CommonNavigationParams& common_params, |
| 556 const RequestNavigationParams& request_params, | 556 const RequestNavigationParams& request_params, |
| 557 bool has_stale_copy_in_cache, | 557 bool has_stale_copy_in_cache, |
| 558 int error_code); | 558 int error_code); |
| 559 | 559 |
| 560 // PlzNavigate | |
|
alexmos
2017/02/10 22:59:53
Does this have to be specific to PlzNavigate? I'm
arthursonzogni
2017/02/13 16:33:20
I will probably need to forward the should_bypass_
| |
| 561 // Inform the renderer process that a navigation has been blocked by a content | |
| 562 // security policy. | |
| 563 void ContentSecurityPolicyViolation( | |
| 564 const CSPViolationParams& violation_params); | |
| 565 | |
| 560 // Sets up the Mojo connection between this instance and its associated render | 566 // Sets up the Mojo connection between this instance and its associated render |
| 561 // frame if it has not yet been set up. | 567 // frame if it has not yet been set up. |
| 562 void SetUpMojoIfNeeded(); | 568 void SetUpMojoIfNeeded(); |
| 563 | 569 |
| 564 // Tears down the browser-side state relating to the Mojo connection between | 570 // Tears down the browser-side state relating to the Mojo connection between |
| 565 // this instance and its associated render frame. | 571 // this instance and its associated render frame. |
| 566 void InvalidateMojoConnection(); | 572 void InvalidateMojoConnection(); |
| 567 | 573 |
| 568 // Returns whether the frame is focused. A frame is considered focused when it | 574 // Returns whether the frame is focused. A frame is considered focused when it |
| 569 // is the parent chain of the focused frame within the frame tree. In | 575 // is the parent chain of the focused frame within the frame tree. In |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1170 | 1176 |
| 1171 // NOTE: This must be the last member. | 1177 // NOTE: This must be the last member. |
| 1172 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1178 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1173 | 1179 |
| 1174 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1180 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1175 }; | 1181 }; |
| 1176 | 1182 |
| 1177 } // namespace content | 1183 } // namespace content |
| 1178 | 1184 |
| 1179 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1185 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |