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_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 <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 class RenderWidgetHostImpl; | 64 class RenderWidgetHostImpl; |
65 class RenderWidgetHostView; | 65 class RenderWidgetHostView; |
66 class ResourceRequestBody; | 66 class ResourceRequestBody; |
67 class StreamHandle; | 67 class StreamHandle; |
68 class TimeoutMonitor; | 68 class TimeoutMonitor; |
69 struct BeginNavigationParams; | 69 struct BeginNavigationParams; |
70 struct CommitNavigationParams; | 70 struct CommitNavigationParams; |
71 struct CommonNavigationParams; | 71 struct CommonNavigationParams; |
72 struct ContextMenuParams; | 72 struct ContextMenuParams; |
73 struct GlobalRequestID; | 73 struct GlobalRequestID; |
| 74 struct HistoryNavigationParams; |
74 struct Referrer; | 75 struct Referrer; |
75 struct ResourceResponse; | 76 struct ResourceResponse; |
76 struct TransitionLayerData; | 77 struct TransitionLayerData; |
77 | 78 |
78 // Flag arguments for RenderFrameHost creation. | 79 // Flag arguments for RenderFrameHost creation. |
79 enum CreateRenderFrameFlags { | 80 enum CreateRenderFrameFlags { |
80 // The RFH will be initially placed on the swapped out hosts list. | 81 // The RFH will be initially placed on the swapped out hosts list. |
81 CREATE_RF_SWAPPED_OUT = 1 << 0, | 82 CREATE_RF_SWAPPED_OUT = 1 << 0, |
82 // The new RenderFrame is being created for a navigation of the | 83 // The new RenderFrame is being created for a navigation of the |
83 // top-level frame. | 84 // top-level frame. |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 #elif defined(OS_ANDROID) | 407 #elif defined(OS_ANDROID) |
407 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); | 408 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); |
408 void DidCancelPopupMenu(); | 409 void DidCancelPopupMenu(); |
409 #endif | 410 #endif |
410 | 411 |
411 // PlzNavigate: Indicates that a navigation is ready to commit and can be | 412 // PlzNavigate: Indicates that a navigation is ready to commit and can be |
412 // handled by this RenderFrame. | 413 // handled by this RenderFrame. |
413 void CommitNavigation(ResourceResponse* response, | 414 void CommitNavigation(ResourceResponse* response, |
414 scoped_ptr<StreamHandle> body, | 415 scoped_ptr<StreamHandle> body, |
415 const CommonNavigationParams& common_params, | 416 const CommonNavigationParams& common_params, |
416 const CommitNavigationParams& commit_params); | 417 const CommitNavigationParams& commit_params, |
| 418 const HistoryNavigationParams& history_params); |
417 | 419 |
418 // Sets up the Mojo connection between this instance and its associated render | 420 // Sets up the Mojo connection between this instance and its associated render |
419 // frame if it has not yet been set up. | 421 // frame if it has not yet been set up. |
420 void SetUpMojoIfNeeded(); | 422 void SetUpMojoIfNeeded(); |
421 | 423 |
422 // Tears down the browser-side state relating to the Mojo connection between | 424 // Tears down the browser-side state relating to the Mojo connection between |
423 // this instance and its associated render frame. | 425 // this instance and its associated render frame. |
424 void InvalidateMojoConnection(); | 426 void InvalidateMojoConnection(); |
425 | 427 |
426 // Returns whether the frame is focused. A frame is considered focused when it | 428 // Returns whether the frame is focused. A frame is considered focused when it |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 | 706 |
705 // NOTE: This must be the last member. | 707 // NOTE: This must be the last member. |
706 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 708 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
707 | 709 |
708 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 710 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
709 }; | 711 }; |
710 | 712 |
711 } // namespace content | 713 } // namespace content |
712 | 714 |
713 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 715 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |