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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 StreamHandle; | 57 class StreamHandle; |
58 class TimeoutMonitor; | 58 class TimeoutMonitor; |
59 struct CommitNavigationParams; | 59 struct CommitNavigationParams; |
| 60 struct CommonNavigationParams; |
60 struct ContextMenuParams; | 61 struct ContextMenuParams; |
61 struct CommonNavigationParams; | |
62 struct GlobalRequestID; | 62 struct GlobalRequestID; |
63 struct Referrer; | 63 struct Referrer; |
64 struct RequestNavigationParams; | 64 struct RequestNavigationParams; |
65 struct ResourceResponse; | 65 struct ResourceResponse; |
66 struct ShowDesktopNotificationHostMsgParams; | 66 struct ShowDesktopNotificationHostMsgParams; |
67 struct TransitionLayerData; | 67 struct TransitionLayerData; |
68 | 68 |
69 class CONTENT_EXPORT RenderFrameHostImpl | 69 class CONTENT_EXPORT RenderFrameHostImpl |
70 : public RenderFrameHost, | 70 : public RenderFrameHost, |
71 public BrowserAccessibilityDelegate { | 71 public BrowserAccessibilityDelegate { |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 gfx::NativeViewAccessible GetParentNativeViewAccessible() const; | 340 gfx::NativeViewAccessible GetParentNativeViewAccessible() const; |
341 #elif defined(OS_MACOSX) | 341 #elif defined(OS_MACOSX) |
342 // Select popup menu related methods (for external popup menus). | 342 // Select popup menu related methods (for external popup menus). |
343 void DidSelectPopupMenuItem(int selected_index); | 343 void DidSelectPopupMenuItem(int selected_index); |
344 void DidCancelPopupMenu(); | 344 void DidCancelPopupMenu(); |
345 #elif defined(OS_ANDROID) | 345 #elif defined(OS_ANDROID) |
346 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); | 346 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); |
347 void DidCancelPopupMenu(); | 347 void DidCancelPopupMenu(); |
348 #endif | 348 #endif |
349 | 349 |
| 350 // PlzNavigate |
| 351 // Tells the renderer that there is a navigation request. The renderer should |
| 352 // execute its beforeunload event and confirm the navigation by sending a |
| 353 // FrameHostMsg_BeginNavigation to the browser. |
| 354 void RequestNavigation(const CommonNavigationParams& common_params, |
| 355 const RequestNavigationParams& request_params); |
| 356 |
350 // PlzNavigate: Indicates that a navigation is ready to commit and can be | 357 // PlzNavigate: Indicates that a navigation is ready to commit and can be |
351 // handled by this RenderFrame. | 358 // handled by this RenderFrame. |
352 void CommitNavigation(ResourceResponse* response, | 359 void CommitNavigation(ResourceResponse* response, |
353 scoped_ptr<StreamHandle> body, | 360 scoped_ptr<StreamHandle> body, |
354 const CommonNavigationParams& common_params, | 361 const CommonNavigationParams& common_params, |
355 const CommitNavigationParams& commit_params); | 362 const CommitNavigationParams& commit_params); |
356 | 363 |
357 protected: | 364 protected: |
358 friend class RenderFrameHostFactory; | 365 friend class RenderFrameHostFactory; |
359 | 366 |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 | 570 |
564 // NOTE: This must be the last member. | 571 // NOTE: This must be the last member. |
565 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 572 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
566 | 573 |
567 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 574 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
568 }; | 575 }; |
569 | 576 |
570 } // namespace content | 577 } // namespace content |
571 | 578 |
572 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 579 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |