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

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

Issue 868673002: OOPIF: report both original and destination rfh in AboutToNavigateRenderFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 5 years, 11 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_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "content/public/browser/invalidate_type.h" 9 #include "content/public/browser/invalidate_type.h"
10 #include "content/public/browser/navigation_controller.h" 10 #include "content/public/browser/navigation_controller.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void SetMainFrameMimeType(const std::string& mime_type) {} 75 virtual void SetMainFrameMimeType(const std::string& mime_type) {}
76 virtual bool CanOverscrollContent() const; 76 virtual bool CanOverscrollContent() const;
77 77
78 // Notification to the Navigator embedder that navigation state has 78 // Notification to the Navigator embedder that navigation state has
79 // changed. This method corresponds to 79 // changed. This method corresponds to
80 // WebContents::NotifyNavigationStateChanged. 80 // WebContents::NotifyNavigationStateChanged.
81 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {} 81 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {}
82 82
83 // Notifies the Navigator embedder that it is beginning to navigate a frame. 83 // Notifies the Navigator embedder that it is beginning to navigate a frame.
84 virtual void AboutToNavigateRenderFrame( 84 virtual void AboutToNavigateRenderFrame(
85 RenderFrameHostImpl* render_frame_host) {} 85 RenderFrameHostImpl* old_host,
86 RenderFrameHostImpl* new_host) {}
86 87
87 // Notifies the Navigator embedder that a navigation to pending 88 // Notifies the Navigator embedder that a navigation to pending
88 // NavigationEntry has started in the browser process. 89 // NavigationEntry has started in the browser process.
89 virtual void DidStartNavigationToPendingEntry( 90 virtual void DidStartNavigationToPendingEntry(
90 RenderFrameHostImpl* render_frame_host, 91 RenderFrameHostImpl* render_frame_host,
91 const GURL& url, 92 const GURL& url,
92 NavigationController::ReloadType reload_type) {} 93 NavigationController::ReloadType reload_type) {}
93 94
94 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which 95 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which
95 // this forwards to. 96 // this forwards to.
96 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, 97 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host,
97 const OpenURLParams& params) {} 98 const OpenURLParams& params) {}
98 99
99 // Returns whether URLs for aborted browser-initiated navigations should be 100 // Returns whether URLs for aborted browser-initiated navigations should be
100 // preserved in the omnibox. Defaults to false. 101 // preserved in the omnibox. Defaults to false.
101 virtual bool ShouldPreserveAbortedURLs(); 102 virtual bool ShouldPreserveAbortedURLs();
102 }; 103 };
103 104
104 } // namspace content 105 } // namspace content
105 106
106 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ 107 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/render_view_devtools_agent_host.cc ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698