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

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

Issue 232463007: Don't leave aborted URLs in the omnibox unless we're on a new tab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 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 | Annotate | Revision Log
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // NavigationEntry has started in the browser process. 92 // NavigationEntry has started in the browser process.
93 virtual void DidStartNavigationToPendingEntry( 93 virtual void DidStartNavigationToPendingEntry(
94 RenderFrameHostImpl* render_frame_host, 94 RenderFrameHostImpl* render_frame_host,
95 const GURL& url, 95 const GURL& url,
96 NavigationController::ReloadType reload_type) {} 96 NavigationController::ReloadType reload_type) {}
97 97
98 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which 98 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which
99 // this forwards to. 99 // this forwards to.
100 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, 100 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host,
101 const OpenURLParams& params) {} 101 const OpenURLParams& params) {}
102
103 // Returns whether URLs for aborted browser-initiated navigations should be
104 // preserved in the omnibox. Defaults to false.
105 virtual bool ShouldPreserveAbortedURLs();
102 }; 106 };
103 107
104 } // namspace content 108 } // namspace content
105 109
106 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ 110 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl_unittest.cc ('k') | content/browser/frame_host/navigator_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698