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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" | 43 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" |
| 44 #include "third_party/WebKit/public/web/WebTextDirection.h" | 44 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| 45 #include "third_party/WebKit/public/web/WebTreeScopeType.h" | 45 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
| 46 #include "ui/accessibility/ax_node_data.h" | 46 #include "ui/accessibility/ax_node_data.h" |
| 47 #include "ui/base/page_transition_types.h" | 47 #include "ui/base/page_transition_types.h" |
| 48 | 48 |
| 49 class GURL; | 49 class GURL; |
| 50 struct AccessibilityHostMsg_EventParams; | 50 struct AccessibilityHostMsg_EventParams; |
| 51 struct AccessibilityHostMsg_FindInPageResultParams; | 51 struct AccessibilityHostMsg_FindInPageResultParams; |
| 52 struct AccessibilityHostMsg_LocationChangeParams; | 52 struct AccessibilityHostMsg_LocationChangeParams; |
| 53 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | |
| 53 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 54 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
| 54 struct FrameHostMsg_OpenURL_Params; | 55 struct FrameHostMsg_OpenURL_Params; |
| 55 struct FrameMsg_TextTrackSettings_Params; | 56 struct FrameMsg_TextTrackSettings_Params; |
| 56 #if defined(USE_EXTERNAL_POPUP_MENU) | 57 #if defined(USE_EXTERNAL_POPUP_MENU) |
| 57 struct FrameHostMsg_ShowPopup_Params; | 58 struct FrameHostMsg_ShowPopup_Params; |
| 58 #endif | 59 #endif |
| 59 | 60 |
| 60 namespace base { | 61 namespace base { |
| 61 class FilePath; | 62 class FilePath; |
| 62 class ListValue; | 63 class ListValue; |
| (...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 813 // Deletes the Web Bluetooth Service owned by the frame. | 814 // Deletes the Web Bluetooth Service owned by the frame. |
| 814 void DeleteWebBluetoothService(); | 815 void DeleteWebBluetoothService(); |
| 815 | 816 |
| 816 // Allows tests to disable the swapout event timer to simulate bugs that | 817 // Allows tests to disable the swapout event timer to simulate bugs that |
| 817 // happen before it fires (to avoid flakiness). | 818 // happen before it fires (to avoid flakiness). |
| 818 void DisableSwapOutTimerForTesting(); | 819 void DisableSwapOutTimerForTesting(); |
| 819 | 820 |
| 820 void OnRendererConnect(const service_manager::ServiceInfo& local_info, | 821 void OnRendererConnect(const service_manager::ServiceInfo& local_info, |
| 821 const service_manager::ServiceInfo& remote_info); | 822 const service_manager::ServiceInfo& remote_info); |
| 822 | 823 |
| 824 // Returns the NavigationHandle associated with a navigation that just | |
| 825 // committed. | |
| 826 std::unique_ptr<NavigationHandleImpl> FindNavigationHandleForCommit( | |
|
Charlie Reis
2016/11/03 22:02:22
This sounds like an accessor, and it doesn't make
clamy
2016/11/04 14:18:21
I've updated the comment and renamed the method. I
Charlie Reis
2016/11/04 17:30:53
I think that works-- thanks.
| |
| 827 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); | |
| 828 | |
| 823 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a | 829 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
| 824 // refcount that calls Shutdown when it reaches zero. This allows each | 830 // refcount that calls Shutdown when it reaches zero. This allows each |
| 825 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring | 831 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring |
| 826 // we have a RenderViewHost for each RenderFrameHost. | 832 // we have a RenderViewHost for each RenderFrameHost. |
| 827 // TODO(creis): RenderViewHost will eventually go away and be replaced with | 833 // TODO(creis): RenderViewHost will eventually go away and be replaced with |
| 828 // some form of page context. | 834 // some form of page context. |
| 829 RenderViewHostImpl* render_view_host_; | 835 RenderViewHostImpl* render_view_host_; |
| 830 | 836 |
| 831 RenderFrameHostDelegate* delegate_; | 837 RenderFrameHostDelegate* delegate_; |
| 832 | 838 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1060 remote_associated_interfaces_; | 1066 remote_associated_interfaces_; |
| 1061 // NOTE: This must be the last member. | 1067 // NOTE: This must be the last member. |
| 1062 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1068 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1063 | 1069 |
| 1064 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1070 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1065 }; | 1071 }; |
| 1066 | 1072 |
| 1067 } // namespace content | 1073 } // namespace content |
| 1068 | 1074 |
| 1069 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1075 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |