| 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 15 matching lines...) Expand all Loading... |
| 26 #include "content/browser/accessibility/browser_accessibility_manager.h" | 26 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 27 #include "content/browser/bad_message.h" | 27 #include "content/browser/bad_message.h" |
| 28 #include "content/browser/loader/global_routing_id.h" | 28 #include "content/browser/loader/global_routing_id.h" |
| 29 #include "content/browser/site_instance_impl.h" | 29 #include "content/browser/site_instance_impl.h" |
| 30 #include "content/browser/webui/web_ui_impl.h" | 30 #include "content/browser/webui/web_ui_impl.h" |
| 31 #include "content/common/accessibility_mode.h" | 31 #include "content/common/accessibility_mode.h" |
| 32 #include "content/common/ax_content_node_data.h" | 32 #include "content/common/ax_content_node_data.h" |
| 33 #include "content/common/content_export.h" | 33 #include "content/common/content_export.h" |
| 34 #include "content/common/content_security_policy/content_security_policy.h" | 34 #include "content/common/content_security_policy/content_security_policy.h" |
| 35 #include "content/common/download/mhtml_save_status.h" | 35 #include "content/common/download/mhtml_save_status.h" |
| 36 #include "content/common/features.h" |
| 36 #include "content/common/frame.mojom.h" | 37 #include "content/common/frame.mojom.h" |
| 37 #include "content/common/frame_message_enums.h" | 38 #include "content/common/frame_message_enums.h" |
| 38 #include "content/common/frame_replication_state.h" | 39 #include "content/common/frame_replication_state.h" |
| 39 #include "content/common/image_downloader/image_downloader.mojom.h" | 40 #include "content/common/image_downloader/image_downloader.mojom.h" |
| 40 #include "content/common/navigation_params.h" | 41 #include "content/common/navigation_params.h" |
| 41 #include "content/public/browser/render_frame_host.h" | 42 #include "content/public/browser/render_frame_host.h" |
| 42 #include "content/public/common/javascript_dialog_type.h" | 43 #include "content/public/common/javascript_dialog_type.h" |
| 43 #include "content/public/common/previews_state.h" | 44 #include "content/public/common/previews_state.h" |
| 44 #include "media/mojo/interfaces/interface_factory.mojom.h" | 45 #include "media/mojo/interfaces/interface_factory.mojom.h" |
| 45 #include "net/http/http_response_headers.h" | 46 #include "net/http/http_response_headers.h" |
| 46 #include "services/service_manager/public/cpp/interface_factory.h" | 47 #include "services/service_manager/public/cpp/interface_factory.h" |
| 47 #include "services/service_manager/public/cpp/interface_registry.h" | 48 #include "services/service_manager/public/cpp/interface_registry.h" |
| 48 #include "third_party/WebKit/public/platform/WebFocusType.h" | 49 #include "third_party/WebKit/public/platform/WebFocusType.h" |
| 49 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" | 50 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" |
| 50 #include "third_party/WebKit/public/web/WebTextDirection.h" | 51 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| 51 #include "third_party/WebKit/public/web/WebTreeScopeType.h" | 52 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
| 52 #include "ui/accessibility/ax_node_data.h" | 53 #include "ui/accessibility/ax_node_data.h" |
| 53 #include "ui/base/mojo/window_open_disposition.mojom.h" | 54 #include "ui/base/mojo/window_open_disposition.mojom.h" |
| 54 #include "ui/base/page_transition_types.h" | 55 #include "ui/base/page_transition_types.h" |
| 55 | 56 |
| 56 class GURL; | 57 class GURL; |
| 57 struct AccessibilityHostMsg_EventParams; | 58 struct AccessibilityHostMsg_EventParams; |
| 58 struct AccessibilityHostMsg_FindInPageResultParams; | 59 struct AccessibilityHostMsg_FindInPageResultParams; |
| 59 struct AccessibilityHostMsg_LocationChangeParams; | 60 struct AccessibilityHostMsg_LocationChangeParams; |
| 60 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 61 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
| 61 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 62 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
| 62 struct FrameHostMsg_OpenURL_Params; | 63 struct FrameHostMsg_OpenURL_Params; |
| 63 struct FrameMsg_TextTrackSettings_Params; | 64 struct FrameMsg_TextTrackSettings_Params; |
| 64 #if defined(USE_EXTERNAL_POPUP_MENU) | 65 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
| 65 struct FrameHostMsg_ShowPopup_Params; | 66 struct FrameHostMsg_ShowPopup_Params; |
| 66 #endif | 67 #endif |
| 67 | 68 |
| 68 namespace base { | 69 namespace base { |
| 69 class ListValue; | 70 class ListValue; |
| 70 } | 71 } |
| 71 | 72 |
| 72 namespace blink { | 73 namespace blink { |
| 73 namespace mojom { | 74 namespace mojom { |
| 74 class WebBluetoothService; | 75 class WebBluetoothService; |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 | 510 |
| 510 // If accessibility is enabled, get the BrowserAccessibilityManager for | 511 // If accessibility is enabled, get the BrowserAccessibilityManager for |
| 511 // this frame, or create one if it doesn't exist yet, otherwise return | 512 // this frame, or create one if it doesn't exist yet, otherwise return |
| 512 // NULL. | 513 // NULL. |
| 513 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager(); | 514 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager(); |
| 514 | 515 |
| 515 void set_no_create_browser_accessibility_manager_for_testing(bool flag) { | 516 void set_no_create_browser_accessibility_manager_for_testing(bool flag) { |
| 516 no_create_browser_accessibility_manager_for_testing_ = flag; | 517 no_create_browser_accessibility_manager_for_testing_ = flag; |
| 517 } | 518 } |
| 518 | 519 |
| 519 #if defined(USE_EXTERNAL_POPUP_MENU) | 520 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
| 520 #if defined(OS_MACOSX) | 521 #if defined(OS_MACOSX) |
| 521 // Select popup menu related methods (for external popup menus). | 522 // Select popup menu related methods (for external popup menus). |
| 522 void DidSelectPopupMenuItem(int selected_index); | 523 void DidSelectPopupMenuItem(int selected_index); |
| 523 void DidCancelPopupMenu(); | 524 void DidCancelPopupMenu(); |
| 524 #else | 525 #else |
| 525 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); | 526 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); |
| 526 void DidCancelPopupMenu(); | 527 void DidCancelPopupMenu(); |
| 527 #endif | 528 #endif |
| 528 #endif | 529 #endif |
| 529 | 530 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 MhtmlSaveStatus save_status, | 758 MhtmlSaveStatus save_status, |
| 758 const std::set<std::string>& digests_of_uris_of_serialized_resources, | 759 const std::set<std::string>& digests_of_uris_of_serialized_resources, |
| 759 base::TimeDelta renderer_main_thread_time); | 760 base::TimeDelta renderer_main_thread_time); |
| 760 void OnSelectionChanged(const base::string16& text, | 761 void OnSelectionChanged(const base::string16& text, |
| 761 uint32_t offset, | 762 uint32_t offset, |
| 762 const gfx::Range& range); | 763 const gfx::Range& range); |
| 763 void OnFocusedNodeChanged(bool is_editable_element, | 764 void OnFocusedNodeChanged(bool is_editable_element, |
| 764 const gfx::Rect& bounds_in_frame_widget); | 765 const gfx::Rect& bounds_in_frame_widget); |
| 765 void OnSetHasReceivedUserGesture(); | 766 void OnSetHasReceivedUserGesture(); |
| 766 | 767 |
| 767 #if defined(USE_EXTERNAL_POPUP_MENU) | 768 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
| 768 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); | 769 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); |
| 769 void OnHidePopup(); | 770 void OnHidePopup(); |
| 770 #endif | 771 #endif |
| 771 #if defined(OS_ANDROID) | 772 #if defined(OS_ANDROID) |
| 772 void OnNavigationHandledByEmbedder(); | 773 void OnNavigationHandledByEmbedder(); |
| 773 #endif | 774 #endif |
| 774 void OnShowCreatedWindow(int pending_widget_routing_id, | 775 void OnShowCreatedWindow(int pending_widget_routing_id, |
| 775 WindowOpenDisposition disposition, | 776 WindowOpenDisposition disposition, |
| 776 const gfx::Rect& initial_rect, | 777 const gfx::Rect& initial_rect, |
| 777 bool user_gesture); | 778 bool user_gesture); |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 | 1139 |
| 1139 // NOTE: This must be the last member. | 1140 // NOTE: This must be the last member. |
| 1140 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1141 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1141 | 1142 |
| 1142 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1143 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1143 }; | 1144 }; |
| 1144 | 1145 |
| 1145 } // namespace content | 1146 } // namespace content |
| 1146 | 1147 |
| 1147 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1148 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |