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

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

Issue 483773002: PlzNavigate: implement CommitNavigation on the browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NavigationRequest has ownership of NavigationParams Created 6 years, 3 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_NAVIGATOR_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/frame_host/navigation_controller_impl.h" 10 #include "content/browser/frame_host/navigation_controller_impl.h"
10 #include "content/browser/frame_host/navigator.h" 11 #include "content/browser/frame_host/navigator.h"
11 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
12 13
14 class GURL;
13 struct FrameMsg_Navigate_Params; 15 struct FrameMsg_Navigate_Params;
14 16
15 namespace content { 17 namespace content {
16 18
17 class NavigationControllerImpl; 19 class NavigationControllerImpl;
18 class NavigatorDelegate; 20 class NavigatorDelegate;
19 struct LoadCommittedDetails; 21 struct LoadCommittedDetails;
22 struct CommitNavigationParams;
23 struct CoreNavigationParams;
24 struct RequestNavigationParams;
20 25
21 // This class is an implementation of Navigator, responsible for managing 26 // This class is an implementation of Navigator, responsible for managing
22 // navigations in regular browser tabs. 27 // navigations in regular browser tabs.
23 class CONTENT_EXPORT NavigatorImpl : public Navigator { 28 class CONTENT_EXPORT NavigatorImpl : public Navigator {
24 public: 29 public:
25 NavigatorImpl(NavigationControllerImpl* navigation_controller, 30 NavigatorImpl(NavigationControllerImpl* navigation_controller,
26 NavigatorDelegate* delegate); 31 NavigatorDelegate* delegate);
27 32
28 // Fills in |params| based on the content of |entry|.
29 static void MakeNavigateParams(const NavigationEntryImpl& entry,
30 const NavigationControllerImpl& controller,
31 NavigationController::ReloadType reload_type,
32 base::TimeTicks navigation_start,
33 FrameMsg_Navigate_Params* params);
34
35 // Navigator implementation. 33 // Navigator implementation.
36 virtual NavigationController* GetController() OVERRIDE; 34 virtual NavigationController* GetController() OVERRIDE;
37 virtual void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, 35 virtual void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host,
38 const GURL& url, 36 const GURL& url,
39 bool is_transition_navigation) OVERRIDE; 37 bool is_transition_navigation) OVERRIDE;
40 virtual void DidFailProvisionalLoadWithError( 38 virtual void DidFailProvisionalLoadWithError(
41 RenderFrameHostImpl* render_frame_host, 39 RenderFrameHostImpl* render_frame_host,
42 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) 40 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params)
43 OVERRIDE; 41 OVERRIDE;
44 virtual void DidFailLoadWithError( 42 virtual void DidFailLoadWithError(
(...skipping 24 matching lines...) Expand all
69 const GURL& url, 67 const GURL& url,
70 const std::vector<GURL>& redirect_chain, 68 const std::vector<GURL>& redirect_chain,
71 const Referrer& referrer, 69 const Referrer& referrer,
72 ui::PageTransition page_transition, 70 ui::PageTransition page_transition,
73 WindowOpenDisposition disposition, 71 WindowOpenDisposition disposition,
74 const GlobalRequestID& transferred_global_request_id, 72 const GlobalRequestID& transferred_global_request_id,
75 bool should_replace_current_entry, 73 bool should_replace_current_entry,
76 bool user_gesture) OVERRIDE; 74 bool user_gesture) OVERRIDE;
77 virtual void CommitNavigation( 75 virtual void CommitNavigation(
78 RenderFrameHostImpl* render_frame_host, 76 RenderFrameHostImpl* render_frame_host,
79 const NavigationBeforeCommitInfo& info) OVERRIDE; 77 const GURL& stream_url,
78 const CoreNavigationParams& core_params,
79 const CommitNavigationParams& commit_params) OVERRIDE;
80 80
81 private: 81 private:
82 virtual ~NavigatorImpl() {} 82 virtual ~NavigatorImpl() {}
83 83
84 // Navigates to the given entry, which must be the pending entry. Private 84 // Navigates to the given entry, which must be the pending entry. Private
85 // because all callers should use NavigateToPendingEntry. 85 // because all callers should use NavigateToPendingEntry.
86 bool NavigateToEntry( 86 bool NavigateToEntry(
87 RenderFrameHostImpl* render_frame_host, 87 RenderFrameHostImpl* render_frame_host,
88 const NavigationEntryImpl& entry, 88 const NavigationEntryImpl& entry,
89 NavigationController::ReloadType reload_type); 89 NavigationController::ReloadType reload_type);
(...skipping 13 matching lines...) Expand all
103 // Used to notify the object embedding this Navigator about navigation 103 // Used to notify the object embedding this Navigator about navigation
104 // events. Can be NULL in tests. 104 // events. Can be NULL in tests.
105 NavigatorDelegate* delegate_; 105 NavigatorDelegate* delegate_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); 107 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl);
108 }; 108 };
109 109
110 } // namespace content 110 } // namespace content
111 111
112 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ 112 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698