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

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

Issue 2666193002: Switch RenderViewContextMenu to use RequestOpenURL (Closed)
Patch Set: cleanup 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_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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // changed. This method corresponds to 99 // changed. This method corresponds to
100 // WebContents::NotifyNavigationStateChanged. 100 // WebContents::NotifyNavigationStateChanged.
101 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {} 101 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {}
102 102
103 // Notifies the Navigator embedder that a navigation to the pending 103 // Notifies the Navigator embedder that a navigation to the pending
104 // NavigationEntry has started in the browser process. 104 // NavigationEntry has started in the browser process.
105 virtual void DidStartNavigationToPendingEntry(const GURL& url, 105 virtual void DidStartNavigationToPendingEntry(const GURL& url,
106 ReloadType reload_type) {} 106 ReloadType reload_type) {}
107 107
108 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which 108 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which
109 // this forwards to. 109 // this is an alias of.
110 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, 110 virtual WebContents* OpenURL(const OpenURLParams& params) = 0;
111 const OpenURLParams& params) {}
112 111
113 // Returns whether to continue a navigation that needs to transfer to a 112 // Returns whether to continue a navigation that needs to transfer to a
114 // different process between the load start and commit. 113 // different process between the load start and commit.
115 virtual bool ShouldTransferNavigation(bool is_main_frame_navigation); 114 virtual bool ShouldTransferNavigation(bool is_main_frame_navigation);
116 115
117 // Returns whether URLs for aborted browser-initiated navigations should be 116 // Returns whether URLs for aborted browser-initiated navigations should be
118 // preserved in the omnibox. Defaults to false. 117 // preserved in the omnibox. Defaults to false.
119 virtual bool ShouldPreserveAbortedURLs(); 118 virtual bool ShouldPreserveAbortedURLs();
120 119
121 // A RenderFrameHost in the specified |frame_tree_node| started loading a new 120 // A RenderFrameHost in the specified |frame_tree_node| started loading a new
(...skipping 21 matching lines...) Expand all
143 // wants to see passed to the corresponding URLRequest on the IO thread. 142 // wants to see passed to the corresponding URLRequest on the IO thread.
144 // In the case of a navigation to an interstitial, no call will be made to the 143 // In the case of a navigation to an interstitial, no call will be made to the
145 // embedder and |nullptr| is returned. 144 // embedder and |nullptr| is returned.
146 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData( 145 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData(
147 NavigationHandle* navigation_handle); 146 NavigationHandle* navigation_handle);
148 }; 147 };
149 148
150 } // namspace content 149 } // namspace content
151 150
152 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ 151 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698