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

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

Issue 2156883002: Use content::FrameOwnerProperties instead of blink::WebFrameOwnerProperties in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-delegation-frame-owner-properties
Patch Set: Use this everywhere 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_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class RenderFrameHostManagerTest; 42 class RenderFrameHostManagerTest;
43 class RenderFrameProxyHost; 43 class RenderFrameProxyHost;
44 class RenderViewHost; 44 class RenderViewHost;
45 class RenderViewHostImpl; 45 class RenderViewHostImpl;
46 class RenderWidgetHostDelegate; 46 class RenderWidgetHostDelegate;
47 class RenderWidgetHostView; 47 class RenderWidgetHostView;
48 class TestWebContents; 48 class TestWebContents;
49 class WebUIImpl; 49 class WebUIImpl;
50 struct CommonNavigationParams; 50 struct CommonNavigationParams;
51 struct ContentSecurityPolicyHeader; 51 struct ContentSecurityPolicyHeader;
52 struct FrameOwnerProperties;
52 struct FrameReplicationState; 53 struct FrameReplicationState;
53 54
54 // Manages RenderFrameHosts for a FrameTreeNode. It maintains a 55 // Manages RenderFrameHosts for a FrameTreeNode. It maintains a
55 // current_frame_host() which is the content currently visible to the user. When 56 // current_frame_host() which is the content currently visible to the user. When
56 // a frame is told to navigate to a different web site (as determined by 57 // a frame is told to navigate to a different web site (as determined by
57 // SiteInstance), it will replace its current RenderFrameHost with a new 58 // SiteInstance), it will replace its current RenderFrameHost with a new
58 // RenderFrameHost dedicated to the new SiteInstance, possibly in a new process. 59 // RenderFrameHost dedicated to the new SiteInstance, possibly in a new process.
59 // 60 //
60 // Cross-process navigation works like this: 61 // Cross-process navigation works like this:
61 // 62 //
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 436
436 // Resets Content Security Policy in all the proxies. 437 // Resets Content Security Policy in all the proxies.
437 void OnDidResetContentSecurityPolicy(); 438 void OnDidResetContentSecurityPolicy();
438 439
439 // Sends updated enforcement of insecure request policy to all frame proxies 440 // Sends updated enforcement of insecure request policy to all frame proxies
440 // when the frame changes its setting. 441 // when the frame changes its setting.
441 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); 442 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy);
442 443
443 // Called on a frame to notify it that its out-of-process parent frame 444 // Called on a frame to notify it that its out-of-process parent frame
444 // changed a property (such as allowFullscreen) on its <iframe> element. 445 // changed a property (such as allowFullscreen) on its <iframe> element.
445 // Sends updated WebFrameOwnerProperties to the RenderFrame and to all 446 // Sends updated FrameOwnerProperties to the RenderFrame and to all proxies,
446 // proxies, skipping the parent process. 447 // skipping the parent process.
447 void OnDidUpdateFrameOwnerProperties( 448 void OnDidUpdateFrameOwnerProperties(const FrameOwnerProperties& properties);
448 const blink::WebFrameOwnerProperties& properties);
449 449
450 // Send updated origin to all frame proxies when the frame navigates to a new 450 // Send updated origin to all frame proxies when the frame navigates to a new
451 // origin. 451 // origin.
452 void OnDidUpdateOrigin(const url::Origin& origin, 452 void OnDidUpdateOrigin(const url::Origin& origin,
453 bool is_potentially_trustworthy_unique_origin); 453 bool is_potentially_trustworthy_unique_origin);
454 454
455 void EnsureRenderViewInitialized(RenderViewHostImpl* render_view_host, 455 void EnsureRenderViewInitialized(RenderViewHostImpl* render_view_host,
456 SiteInstance* instance); 456 SiteInstance* instance);
457 457
458 // Creates swapped out RenderViews and RenderFrameProxies for this frame's 458 // Creates swapped out RenderViews and RenderFrameProxies for this frame's
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; 803 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_;
804 804
805 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; 805 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_;
806 806
807 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); 807 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager);
808 }; 808 };
809 809
810 } // namespace content 810 } // namespace content
811 811
812 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 812 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698