| 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_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 30 matching lines...) Expand all Loading... |
| 41 class RenderFrameHostDelegate; | 41 class RenderFrameHostDelegate; |
| 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 FrameReplicationState; | 52 struct FrameReplicationState; |
| 52 | 53 |
| 53 // Manages RenderFrameHosts for a FrameTreeNode. It maintains a | 54 // Manages RenderFrameHosts for a FrameTreeNode. It maintains a |
| 54 // current_frame_host() which is the content currently visible to the user. When | 55 // current_frame_host() which is the content currently visible to the user. When |
| 55 // a frame is told to navigate to a different web site (as determined by | 56 // a frame is told to navigate to a different web site (as determined by |
| 56 // SiteInstance), it will replace its current RenderFrameHost with a new | 57 // SiteInstance), it will replace its current RenderFrameHost with a new |
| 57 // RenderFrameHost dedicated to the new SiteInstance, possibly in a new process. | 58 // RenderFrameHost dedicated to the new SiteInstance, possibly in a new process. |
| 58 // | 59 // |
| 59 // Cross-process navigation works like this: | 60 // Cross-process navigation works like this: |
| 60 // | 61 // |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 // Notification methods to tell this RenderFrameHostManager that the frame it | 427 // Notification methods to tell this RenderFrameHostManager that the frame it |
| 427 // is responsible for has started or stopped loading a document. | 428 // is responsible for has started or stopped loading a document. |
| 428 void OnDidStartLoading(); | 429 void OnDidStartLoading(); |
| 429 void OnDidStopLoading(); | 430 void OnDidStopLoading(); |
| 430 | 431 |
| 431 // OnDidUpdateName gets called when a frame changes its name - it gets the new | 432 // OnDidUpdateName gets called when a frame changes its name - it gets the new |
| 432 // |name| and the recalculated |unique_name| and replicates them into all | 433 // |name| and the recalculated |unique_name| and replicates them into all |
| 433 // frame proxies. | 434 // frame proxies. |
| 434 void OnDidUpdateName(const std::string& name, const std::string& unique_name); | 435 void OnDidUpdateName(const std::string& name, const std::string& unique_name); |
| 435 | 436 |
| 437 // Sends the newly added Content Security Policy header to all the proxies. |
| 438 void OnDidAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); |
| 439 |
| 440 // Resets Content Security Policy in all the proxies. |
| 441 void OnDidResetContentSecurityPolicy(); |
| 442 |
| 436 // Sends updated enforcement of strict mixed content checking to all | 443 // Sends updated enforcement of strict mixed content checking to all |
| 437 // frame proxies when the frame changes its setting. | 444 // frame proxies when the frame changes its setting. |
| 438 void OnEnforceStrictMixedContentChecking(bool should_enforce); | 445 void OnEnforceStrictMixedContentChecking(bool should_enforce); |
| 439 | 446 |
| 440 // Send updated origin to all frame proxies when the frame navigates to a new | 447 // Send updated origin to all frame proxies when the frame navigates to a new |
| 441 // origin. | 448 // origin. |
| 442 void OnDidUpdateOrigin(const url::Origin& origin, | 449 void OnDidUpdateOrigin(const url::Origin& origin, |
| 443 bool is_potentially_trustworthy_unique_origin); | 450 bool is_potentially_trustworthy_unique_origin); |
| 444 | 451 |
| 445 void EnsureRenderViewInitialized(RenderViewHostImpl* render_view_host, | 452 void EnsureRenderViewInitialized(RenderViewHostImpl* render_view_host, |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 799 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
| 793 | 800 |
| 794 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 801 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 795 | 802 |
| 796 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 803 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 797 }; | 804 }; |
| 798 | 805 |
| 799 } // namespace content | 806 } // namespace content |
| 800 | 807 |
| 801 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 808 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |