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

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

Issue 2697753002: PlzNavigate: Fix dynamic iframe back forward layout test failure (Closed)
Patch Set: Refactor Created 3 years, 10 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_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/frame_host/navigation_handle_impl.h" 10 #include "content/browser/frame_host/navigation_handle_impl.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool is_same_document_history_load); 98 bool is_same_document_history_load);
99 99
100 // Called on a newly created subframe during a history navigation. The browser 100 // Called on a newly created subframe during a history navigation. The browser
101 // process looks up the corresponding FrameNavigationEntry for the new frame 101 // process looks up the corresponding FrameNavigationEntry for the new frame
102 // navigates it in the correct process. Returns false if the 102 // navigates it in the correct process. Returns false if the
103 // FrameNavigationEntry can't be found or the navigation fails. This is only 103 // FrameNavigationEntry can't be found or the navigation fails. This is only
104 // used in OOPIF-enabled modes. 104 // used in OOPIF-enabled modes.
105 // TODO(creis): Remove |default_url| once we have collected UMA stats on the 105 // TODO(creis): Remove |default_url| once we have collected UMA stats on the
106 // cases that we use a different URL from history than the frame's src. 106 // cases that we use a different URL from history than the frame's src.
107 virtual bool NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host, 107 virtual bool NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host,
108 bool is_user_gesure,
108 const GURL& default_url); 109 const GURL& default_url);
109 110
110 // Navigation requests ------------------------------------------------------- 111 // Navigation requests -------------------------------------------------------
111 112
112 virtual base::TimeTicks GetCurrentLoadStart(); 113 virtual base::TimeTicks GetCurrentLoadStart();
113 114
114 // The RenderFrameHostImpl has received a request to open a URL with the 115 // The RenderFrameHostImpl has received a request to open a URL with the
115 // specified |disposition|. 116 // specified |disposition|.
116 virtual void RequestOpenURL( 117 virtual void RequestOpenURL(
117 RenderFrameHostImpl* render_frame_host, 118 RenderFrameHostImpl* render_frame_host,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} 191 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {}
191 192
192 protected: 193 protected:
193 friend class base::RefCounted<Navigator>; 194 friend class base::RefCounted<Navigator>;
194 virtual ~Navigator() {} 195 virtual ~Navigator() {}
195 }; 196 };
196 197
197 } // namespace content 198 } // namespace content
198 199
199 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 200 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698