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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 | 328 |
329 // Called when this frame's opener is changed to the frame specified by | 329 // Called when this frame's opener is changed to the frame specified by |
330 // |opener_routing_id| in |source_site_instance|'s process. This change | 330 // |opener_routing_id| in |source_site_instance|'s process. This change |
331 // could come from either the current RenderFrameHost or one of the | 331 // could come from either the current RenderFrameHost or one of the |
332 // proxies (e.g., window.open that targets a RemoteFrame by name). The | 332 // proxies (e.g., window.open that targets a RemoteFrame by name). The |
333 // updated opener will be forwarded to any other RenderFrameProxies and | 333 // updated opener will be forwarded to any other RenderFrameProxies and |
334 // RenderFrames for this FrameTreeNode. | 334 // RenderFrames for this FrameTreeNode. |
335 void DidChangeOpener(int opener_routing_id, | 335 void DidChangeOpener(int opener_routing_id, |
336 SiteInstance* source_site_instance); | 336 SiteInstance* source_site_instance); |
337 | 337 |
338 // Creates and initializes a RenderFrameHost. If |flags| has the | 338 // Creates and initializes a RenderFrameHost. If |view_routing_id_ptr| |
339 // CREATE_RF_SWAPPED_OUT bit set from the CreateRenderFrameFlags enum, it will | |
340 // initially be placed on the swapped out hosts list. If |view_routing_id_ptr| | |
341 // is not nullptr it will be set to the routing id of the view associated with | 339 // is not nullptr it will be set to the routing id of the view associated with |
342 // the frame. | 340 // the frame. |
343 scoped_ptr<RenderFrameHostImpl> CreateRenderFrame(SiteInstance* instance, | 341 scoped_ptr<RenderFrameHostImpl> CreateRenderFrame(SiteInstance* instance, |
344 int flags, | 342 int flags, |
345 int* view_routing_id_ptr); | 343 int* view_routing_id_ptr); |
346 | 344 |
347 // Helper method to create and initialize a RenderFrameProxyHost and return | 345 // Helper method to create and initialize a RenderFrameProxyHost and return |
348 // its routing id. | 346 // its routing id. |
349 int CreateRenderFrameProxy(SiteInstance* instance); | 347 int CreateRenderFrameProxy(SiteInstance* instance); |
350 | 348 |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 scoped_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 780 scoped_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
783 | 781 |
784 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 782 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
785 | 783 |
786 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 784 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
787 }; | 785 }; |
788 | 786 |
789 } // namespace content | 787 } // namespace content |
790 | 788 |
791 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 789 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |