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

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 2919593007: Always update the omnibox URL when cancelling via onbeforeunload (Closed)
Patch Set: Merge remote-tracking branch 'origin/master' into spoof Created 3 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // The destination URL has changed should be updated. 87 // The destination URL has changed should be updated.
88 virtual void UpdateTargetURL(RenderViewHost* render_view_host, 88 virtual void UpdateTargetURL(RenderViewHost* render_view_host,
89 const GURL& url) {} 89 const GURL& url) {}
90 90
91 // The page is trying to close the RenderView's representation in the client. 91 // The page is trying to close the RenderView's representation in the client.
92 virtual void Close(RenderViewHost* render_view_host) {} 92 virtual void Close(RenderViewHost* render_view_host) {}
93 93
94 // The page is trying to move the RenderView's representation in the client. 94 // The page is trying to move the RenderView's representation in the client.
95 virtual void RequestMove(const gfx::Rect& new_bounds) {} 95 virtual void RequestMove(const gfx::Rect& new_bounds) {}
96 96
97 // The pending page load was canceled.
98 virtual void DidCancelLoading() {}
99
100 // The RenderView's main frame document element is ready. This happens when 97 // The RenderView's main frame document element is ready. This happens when
101 // the document has finished parsing. 98 // the document has finished parsing.
102 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} 99 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {}
103 100
104 // The page wants to close the active view in this tab. 101 // The page wants to close the active view in this tab.
105 virtual void RouteCloseEvent(RenderViewHost* rvh) {} 102 virtual void RouteCloseEvent(RenderViewHost* rvh) {}
106 103
107 // Return a dummy RendererPreferences object that will be used by the renderer 104 // Return a dummy RendererPreferences object that will be used by the renderer
108 // associated with the owning RenderViewHost. 105 // associated with the owning RenderViewHost.
109 virtual RendererPreferences GetRendererPrefs( 106 virtual RendererPreferences GetRendererPrefs(
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Whether the WebContents as a persistent video. 189 // Whether the WebContents as a persistent video.
193 virtual bool HasPersistentVideo() const; 190 virtual bool HasPersistentVideo() const;
194 191
195 protected: 192 protected:
196 virtual ~RenderViewHostDelegate() {} 193 virtual ~RenderViewHostDelegate() {}
197 }; 194 };
198 195
199 } // namespace content 196 } // namespace content
200 197
201 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 198 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698