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> |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 #include <unordered_map> | 13 #include <unordered_map> |
14 | 14 |
15 #include "base/containers/hash_tables.h" | 15 #include "base/containers/hash_tables.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "content/browser/frame_host/render_frame_host_impl.h" | 19 #include "content/browser/frame_host/render_frame_host_impl.h" |
20 #include "content/browser/renderer_host/render_view_host_delegate.h" | 20 #include "content/browser/renderer_host/render_view_host_delegate.h" |
21 #include "content/browser/site_instance_impl.h" | 21 #include "content/browser/site_instance_impl.h" |
22 #include "content/common/content_export.h" | 22 #include "content/common/content_export.h" |
23 #include "content/public/browser/global_request_id.h" | 23 #include "content/public/browser/global_request_id.h" |
24 #include "content/public/common/referrer.h" | 24 #include "content/public/common/referrer.h" |
25 #include "ui/base/page_transition_types.h" | 25 #include "ui/base/page_transition_types.h" |
26 #include "url/origin.h" | 26 #include "url/origin.h" |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 class BrowserContext; | 29 class BrowserContext; |
30 class CrossProcessFrameConnector; | |
31 class FrameNavigationEntry; | 30 class FrameNavigationEntry; |
32 class FrameTreeNode; | 31 class FrameTreeNode; |
33 class InterstitialPageImpl; | 32 class InterstitialPageImpl; |
34 class NavigationControllerImpl; | 33 class NavigationControllerImpl; |
35 class NavigationEntry; | 34 class NavigationEntry; |
36 class NavigationEntryImpl; | 35 class NavigationEntryImpl; |
37 class NavigationHandleImpl; | 36 class NavigationHandleImpl; |
38 class NavigationRequest; | 37 class NavigationRequest; |
39 class NavigatorTestWithBrowserSideNavigation; | 38 class NavigatorTestWithBrowserSideNavigation; |
40 class RenderFrameHostDelegate; | 39 class RenderFrameHostDelegate; |
41 class RenderFrameHostManagerTest; | 40 class RenderFrameHostManagerTest; |
42 class RenderFrameProxyHost; | 41 class RenderFrameProxyHost; |
43 class RenderViewHost; | 42 class RenderViewHost; |
44 class RenderViewHostImpl; | 43 class RenderViewHostImpl; |
45 class RenderWidgetHostDelegate; | 44 class RenderWidgetHostDelegate; |
46 class RenderWidgetHostView; | 45 class RenderWidgetHostView; |
47 class TestWebContents; | 46 class TestWebContents; |
48 class WebUIImpl; | 47 class WebUIImpl; |
49 struct CommonNavigationParams; | |
50 struct ContentSecurityPolicyHeader; | 48 struct ContentSecurityPolicyHeader; |
51 struct FrameOwnerProperties; | 49 struct FrameOwnerProperties; |
52 struct FrameReplicationState; | 50 struct FrameReplicationState; |
53 | 51 |
54 // Manages RenderFrameHosts for a FrameTreeNode. It maintains a | 52 // Manages RenderFrameHosts for a FrameTreeNode. It maintains a |
55 // current_frame_host() which is the content currently visible to the user. When | 53 // 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 | 54 // 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 | 55 // SiteInstance), it will replace its current RenderFrameHost with a new |
58 // RenderFrameHost dedicated to the new SiteInstance, possibly in a new process. | 56 // RenderFrameHost dedicated to the new SiteInstance, possibly in a new process. |
59 // | 57 // |
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 802 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
805 | 803 |
806 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 804 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
807 | 805 |
808 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 806 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
809 }; | 807 }; |
810 | 808 |
811 } // namespace content | 809 } // namespace content |
812 | 810 |
813 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 811 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |