Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(817)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 519533002: Initial PlzNavigate RDH-side logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
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 StreamHandle;
57 class TimeoutMonitor; 58 class TimeoutMonitor;
58 struct CommitNavigationParams; 59 struct CommitNavigationParams;
59 struct ContextMenuParams; 60 struct ContextMenuParams;
60 struct CommonNavigationParams; 61 struct CommonNavigationParams;
61 struct GlobalRequestID; 62 struct GlobalRequestID;
62 struct Referrer; 63 struct Referrer;
63 struct RequestNavigationParams; 64 struct RequestNavigationParams;
65 struct ResourceResponse;
64 struct ShowDesktopNotificationHostMsgParams; 66 struct ShowDesktopNotificationHostMsgParams;
65 struct TransitionLayerData; 67 struct TransitionLayerData;
66 68
67 class CONTENT_EXPORT RenderFrameHostImpl 69 class CONTENT_EXPORT RenderFrameHostImpl
68 : public RenderFrameHost, 70 : public RenderFrameHost,
69 public BrowserAccessibilityDelegate { 71 public BrowserAccessibilityDelegate {
70 public: 72 public:
71 // Keeps track of the state of the RenderFrameHostImpl, particularly with 73 // Keeps track of the state of the RenderFrameHostImpl, particularly with
72 // respect to swap out. 74 // respect to swap out.
73 enum RenderFrameHostImplState { 75 enum RenderFrameHostImplState {
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // Select popup menu related methods (for external popup menus). 342 // Select popup menu related methods (for external popup menus).
341 void DidSelectPopupMenuItem(int selected_index); 343 void DidSelectPopupMenuItem(int selected_index);
342 void DidCancelPopupMenu(); 344 void DidCancelPopupMenu();
343 #elif defined(OS_ANDROID) 345 #elif defined(OS_ANDROID)
344 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); 346 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices);
345 void DidCancelPopupMenu(); 347 void DidCancelPopupMenu();
346 #endif 348 #endif
347 349
348 // PlzNavigate: Indicates that a navigation is ready to commit and can be 350 // PlzNavigate: Indicates that a navigation is ready to commit and can be
349 // handled by this RenderFrame. 351 // handled by this RenderFrame.
350 void CommitNavigation(const GURL& stream_url, 352 void CommitNavigation(ResourceResponse* response,
353 scoped_ptr<StreamHandle> body,
351 const CommonNavigationParams& common_params, 354 const CommonNavigationParams& common_params,
352 const CommitNavigationParams& commit_params); 355 const CommitNavigationParams& commit_params);
353 356
354 protected: 357 protected:
355 friend class RenderFrameHostFactory; 358 friend class RenderFrameHostFactory;
356 359
357 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost 360 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost
358 // should be the abstraction needed here, but we need RenderViewHost to pass 361 // should be the abstraction needed here, but we need RenderViewHost to pass
359 // into WebContentsObserver::FrameDetached for now. 362 // into WebContentsObserver::FrameDetached for now.
360 RenderFrameHostImpl(RenderViewHostImpl* render_view_host, 363 RenderFrameHostImpl(RenderViewHostImpl* render_view_host,
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 559
557 // NOTE: This must be the last member. 560 // NOTE: This must be the last member.
558 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 561 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
559 562
560 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 563 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
561 }; 564 };
562 565
563 } // namespace content 566 } // namespace content
564 567
565 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 568 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigator_impl_unittest.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698