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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2146803004: Create a content::FrameOwnerProperties struct for IPC transport of WebFrameOwnerProperties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Transport Created 4 years, 5 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 #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 21 matching lines...) Expand all
32 #include "content/common/frame.mojom.h" 32 #include "content/common/frame.mojom.h"
33 #include "content/common/frame_message_enums.h" 33 #include "content/common/frame_message_enums.h"
34 #include "content/common/frame_replication_state.h" 34 #include "content/common/frame_replication_state.h"
35 #include "content/common/image_downloader/image_downloader.mojom.h" 35 #include "content/common/image_downloader/image_downloader.mojom.h"
36 #include "content/common/navigation_params.h" 36 #include "content/common/navigation_params.h"
37 #include "content/public/browser/render_frame_host.h" 37 #include "content/public/browser/render_frame_host.h"
38 #include "content/public/common/javascript_message_type.h" 38 #include "content/public/common/javascript_message_type.h"
39 #include "net/http/http_response_headers.h" 39 #include "net/http/http_response_headers.h"
40 #include "services/shell/public/cpp/interface_registry.h" 40 #include "services/shell/public/cpp/interface_registry.h"
41 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" 41 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
42 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h"
43 #include "third_party/WebKit/public/web/WebTextDirection.h" 42 #include "third_party/WebKit/public/web/WebTextDirection.h"
44 #include "third_party/WebKit/public/web/WebTreeScopeType.h" 43 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
45 #include "ui/accessibility/ax_node_data.h" 44 #include "ui/accessibility/ax_node_data.h"
46 #include "ui/base/page_transition_types.h" 45 #include "ui/base/page_transition_types.h"
47 46
48 #if defined(OS_ANDROID) 47 #if defined(OS_ANDROID)
49 #include "content/public/browser/android/service_registry_android.h" 48 #include "content/public/browser/android/service_registry_android.h"
50 #endif 49 #endif
51 50
52 class GURL; 51 class GURL;
53 struct AccessibilityHostMsg_EventParams; 52 struct AccessibilityHostMsg_EventParams;
54 struct AccessibilityHostMsg_FindInPageResultParams; 53 struct AccessibilityHostMsg_FindInPageResultParams;
55 struct AccessibilityHostMsg_LocationChangeParams; 54 struct AccessibilityHostMsg_LocationChangeParams;
56 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; 55 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params;
57 struct FrameHostMsg_OpenURL_Params; 56 struct FrameHostMsg_OpenURL_Params;
58 struct FrameMsg_TextTrackSettings_Params; 57 struct FrameMsg_TextTrackSettings_Params;
59 #if defined(USE_EXTERNAL_POPUP_MENU) 58 #if defined(USE_EXTERNAL_POPUP_MENU)
60 struct FrameHostMsg_ShowPopup_Params; 59 struct FrameHostMsg_ShowPopup_Params;
61 #endif 60 #endif
62 61
63 namespace base { 62 namespace base {
64 class FilePath; 63 class FilePath;
65 class ListValue; 64 class ListValue;
66 } 65 }
67 66
68 namespace blink { 67 namespace blink {
68 struct WebFrameOwnerProperties;
nasko 2016/07/18 21:59:15 Why do we still need this? The browser side should
raymes 2016/07/19 00:22:00 It's still used right now in OnCreateChildFrame bu
69 }
70
71 namespace blink {
69 namespace mojom { 72 namespace mojom {
70 class WebBluetoothService; 73 class WebBluetoothService;
71 } 74 }
72 } 75 }
73 76
74 namespace content { 77 namespace content {
75 78
76 class CrossProcessFrameConnector; 79 class CrossProcessFrameConnector;
77 class CrossSiteTransferringRequest; 80 class CrossSiteTransferringRequest;
78 class FrameMojoShell; 81 class FrameMojoShell;
79 class FrameTree; 82 class FrameTree;
80 class FrameTreeNode; 83 class FrameTreeNode;
81 class NavigationHandleImpl; 84 class NavigationHandleImpl;
82 class PermissionServiceContext; 85 class PermissionServiceContext;
83 class RenderFrameHostDelegate; 86 class RenderFrameHostDelegate;
84 class RenderFrameProxyHost; 87 class RenderFrameProxyHost;
85 class RenderProcessHost; 88 class RenderProcessHost;
86 class RenderViewHostImpl; 89 class RenderViewHostImpl;
87 class RenderWidgetHostDelegate; 90 class RenderWidgetHostDelegate;
88 class RenderWidgetHostImpl; 91 class RenderWidgetHostImpl;
89 class RenderWidgetHostView; 92 class RenderWidgetHostView;
90 class RenderWidgetHostViewBase; 93 class RenderWidgetHostViewBase;
91 class ResourceRequestBody; 94 class ResourceRequestBody;
92 class StreamHandle; 95 class StreamHandle;
93 class TimeoutMonitor; 96 class TimeoutMonitor;
94 class WebBluetoothServiceImpl; 97 class WebBluetoothServiceImpl;
95 struct ContentSecurityPolicyHeader; 98 struct ContentSecurityPolicyHeader;
96 struct ContextMenuParams; 99 struct ContextMenuParams;
97 struct FileChooserParams; 100 struct FileChooserParams;
101 struct FrameOwnerProperties;
98 struct GlobalRequestID; 102 struct GlobalRequestID;
99 struct FileChooserParams; 103 struct FileChooserParams;
100 struct Referrer; 104 struct Referrer;
101 struct ResourceResponse; 105 struct ResourceResponse;
102 106
103 class CONTENT_EXPORT RenderFrameHostImpl 107 class CONTENT_EXPORT RenderFrameHostImpl
104 : public RenderFrameHost, 108 : public RenderFrameHost,
105 NON_EXPORTED_BASE(public mojom::FrameHost), 109 NON_EXPORTED_BASE(public mojom::FrameHost),
106 public BrowserAccessibilityDelegate, 110 public BrowserAccessibilityDelegate,
107 public SiteInstanceImpl::Observer { 111 public SiteInstanceImpl::Observer {
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 uint32_t end_offset); 677 uint32_t end_offset);
674 void OnDidAccessInitialDocument(); 678 void OnDidAccessInitialDocument();
675 void OnDidChangeOpener(int32_t opener_routing_id); 679 void OnDidChangeOpener(int32_t opener_routing_id);
676 void OnDidChangeName(const std::string& name, const std::string& unique_name); 680 void OnDidChangeName(const std::string& name, const std::string& unique_name);
677 void OnDidAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); 681 void OnDidAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header);
678 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); 682 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy);
679 void OnUpdateToUniqueOrigin(bool is_potentially_trustworthy_unique_origin); 683 void OnUpdateToUniqueOrigin(bool is_potentially_trustworthy_unique_origin);
680 void OnDidAssignPageId(int32_t page_id); 684 void OnDidAssignPageId(int32_t page_id);
681 void OnDidChangeSandboxFlags(int32_t frame_routing_id, 685 void OnDidChangeSandboxFlags(int32_t frame_routing_id,
682 blink::WebSandboxFlags flags); 686 blink::WebSandboxFlags flags);
683 void OnDidChangeFrameOwnerProperties( 687 void OnDidChangeFrameOwnerProperties(int32_t frame_routing_id,
684 int32_t frame_routing_id, 688 const FrameOwnerProperties& properties);
685 const blink::WebFrameOwnerProperties& properties);
686 void OnUpdateTitle(const base::string16& title, 689 void OnUpdateTitle(const base::string16& title,
687 blink::WebTextDirection title_direction); 690 blink::WebTextDirection title_direction);
688 void OnUpdateEncoding(const std::string& encoding); 691 void OnUpdateEncoding(const std::string& encoding);
689 void OnBeginNavigation(const CommonNavigationParams& common_params, 692 void OnBeginNavigation(const CommonNavigationParams& common_params,
690 const BeginNavigationParams& begin_params); 693 const BeginNavigationParams& begin_params);
691 void OnDispatchLoad(); 694 void OnDispatchLoad();
692 void OnAccessibilityEvents( 695 void OnAccessibilityEvents(
693 const std::vector<AccessibilityHostMsg_EventParams>& params, 696 const std::vector<AccessibilityHostMsg_EventParams>& params,
694 int reset_token); 697 int reset_token);
695 void OnAccessibilityLocationChanges( 698 void OnAccessibilityLocationChanges(
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 1044
1042 // NOTE: This must be the last member. 1045 // NOTE: This must be the last member.
1043 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1046 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1044 1047
1045 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1048 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1046 }; 1049 };
1047 1050
1048 } // namespace content 1051 } // namespace content
1049 1052
1050 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1053 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698