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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 class CrossProcessFrameConnector; | 48 class CrossProcessFrameConnector; |
49 class CrossSiteTransferringRequest; | 49 class CrossSiteTransferringRequest; |
50 class FrameTree; | 50 class FrameTree; |
51 class FrameTreeNode; | 51 class FrameTreeNode; |
52 class RenderFrameHostDelegate; | 52 class RenderFrameHostDelegate; |
53 class RenderFrameProxyHost; | 53 class RenderFrameProxyHost; |
54 class RenderProcessHost; | 54 class RenderProcessHost; |
55 class RenderViewHostImpl; | 55 class RenderViewHostImpl; |
56 class RenderWidgetHostImpl; | 56 class RenderWidgetHostImpl; |
57 class TimeoutMonitor; | 57 class TimeoutMonitor; |
| 58 struct CommitNavigationParams; |
58 struct ContextMenuParams; | 59 struct ContextMenuParams; |
| 60 struct CommonNavigationParams; |
59 struct GlobalRequestID; | 61 struct GlobalRequestID; |
60 struct Referrer; | 62 struct Referrer; |
| 63 struct RequestNavigationParams; |
61 struct ShowDesktopNotificationHostMsgParams; | 64 struct ShowDesktopNotificationHostMsgParams; |
62 struct TransitionLayerData; | 65 struct TransitionLayerData; |
63 | 66 |
64 class CONTENT_EXPORT RenderFrameHostImpl | 67 class CONTENT_EXPORT RenderFrameHostImpl |
65 : public RenderFrameHost, | 68 : public RenderFrameHost, |
66 public BrowserAccessibilityDelegate { | 69 public BrowserAccessibilityDelegate { |
67 public: | 70 public: |
68 // Keeps track of the state of the RenderFrameHostImpl, particularly with | 71 // Keeps track of the state of the RenderFrameHostImpl, particularly with |
69 // respect to swap out. | 72 // respect to swap out. |
70 enum RenderFrameHostImplState { | 73 enum RenderFrameHostImplState { |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 gfx::NativeViewAccessible GetParentNativeViewAccessible() const; | 340 gfx::NativeViewAccessible GetParentNativeViewAccessible() const; |
338 #elif defined(OS_MACOSX) | 341 #elif defined(OS_MACOSX) |
339 // Select popup menu related methods (for external popup menus). | 342 // Select popup menu related methods (for external popup menus). |
340 void DidSelectPopupMenuItem(int selected_index); | 343 void DidSelectPopupMenuItem(int selected_index); |
341 void DidCancelPopupMenu(); | 344 void DidCancelPopupMenu(); |
342 #elif defined(OS_ANDROID) | 345 #elif defined(OS_ANDROID) |
343 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); | 346 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); |
344 void DidCancelPopupMenu(); | 347 void DidCancelPopupMenu(); |
345 #endif | 348 #endif |
346 | 349 |
| 350 // PlzNavigate: Indicates that a navigation is ready to commit and can be |
| 351 // handled by this RenderFrame. |
| 352 void CommitNavigation(const GURL& stream_url, |
| 353 const CommonNavigationParams& common_params, |
| 354 const CommitNavigationParams& commit_params); |
| 355 |
347 protected: | 356 protected: |
348 friend class RenderFrameHostFactory; | 357 friend class RenderFrameHostFactory; |
349 | 358 |
350 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost | 359 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost |
351 // should be the abstraction needed here, but we need RenderViewHost to pass | 360 // should be the abstraction needed here, but we need RenderViewHost to pass |
352 // into WebContentsObserver::FrameDetached for now. | 361 // into WebContentsObserver::FrameDetached for now. |
353 RenderFrameHostImpl(RenderViewHostImpl* render_view_host, | 362 RenderFrameHostImpl(RenderViewHostImpl* render_view_host, |
354 RenderFrameHostDelegate* delegate, | 363 RenderFrameHostDelegate* delegate, |
355 FrameTree* frame_tree, | 364 FrameTree* frame_tree, |
356 FrameTreeNode* frame_tree_node, | 365 FrameTreeNode* frame_tree_node, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 void OnTextSurroundingSelectionResponse(const base::string16& content, | 415 void OnTextSurroundingSelectionResponse(const base::string16& content, |
407 size_t start_offset, | 416 size_t start_offset, |
408 size_t end_offset); | 417 size_t end_offset); |
409 void OnDidAccessInitialDocument(); | 418 void OnDidAccessInitialDocument(); |
410 void OnDidDisownOpener(); | 419 void OnDidDisownOpener(); |
411 void OnDidAssignPageId(int32 page_id); | 420 void OnDidAssignPageId(int32 page_id); |
412 void OnUpdateTitle(int32 page_id, | 421 void OnUpdateTitle(int32 page_id, |
413 const base::string16& title, | 422 const base::string16& title, |
414 blink::WebTextDirection title_direction); | 423 blink::WebTextDirection title_direction); |
415 void OnUpdateEncoding(const std::string& encoding); | 424 void OnUpdateEncoding(const std::string& encoding); |
416 void OnBeginNavigation( | 425 void OnBeginNavigation(const FrameHostMsg_BeginNavigation_Params& params, |
417 const FrameHostMsg_BeginNavigation_Params& params); | 426 const CommonNavigationParams& common_params); |
418 void OnAccessibilityEvents( | 427 void OnAccessibilityEvents( |
419 const std::vector<AccessibilityHostMsg_EventParams>& params); | 428 const std::vector<AccessibilityHostMsg_EventParams>& params); |
420 void OnAccessibilityLocationChanges( | 429 void OnAccessibilityLocationChanges( |
421 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); | 430 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); |
422 | 431 |
423 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 432 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
424 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); | 433 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); |
425 void OnHidePopup(); | 434 void OnHidePopup(); |
426 #endif | 435 #endif |
427 | 436 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 | 562 |
554 // NOTE: This must be the last member. | 563 // NOTE: This must be the last member. |
555 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 564 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
556 | 565 |
557 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 566 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
558 }; | 567 }; |
559 | 568 |
560 } // namespace content | 569 } // namespace content |
561 | 570 |
562 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 571 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |