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

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

Issue 14283005: Allow showing pending URL for new tab navigations, but only if safe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 // The RenderView made progress loading a page's top frame. 209 // The RenderView made progress loading a page's top frame.
210 // |progress| is a value between 0 (nothing loaded) to 1.0 (top frame 210 // |progress| is a value between 0 (nothing loaded) to 1.0 (top frame
211 // entirely loaded). 211 // entirely loaded).
212 virtual void DidChangeLoadProgress(double progress) {} 212 virtual void DidChangeLoadProgress(double progress) {}
213 213
214 // The RenderView set its opener to null, disowning it for the lifetime of 214 // The RenderView set its opener to null, disowning it for the lifetime of
215 // the window. 215 // the window.
216 virtual void DidDisownOpener(RenderViewHost* rvh) {} 216 virtual void DidDisownOpener(RenderViewHost* rvh) {}
217 217
218 // Another page accessed the initial empty document of this RenderView,
219 // which means it is no longer safe to display a pending URL without
220 // risking a URL spoof.
221 virtual void DidAccessInitialDocument() {}
222
218 // The RenderView's main frame document element is ready. This happens when 223 // The RenderView's main frame document element is ready. This happens when
219 // the document has finished parsing. 224 // the document has finished parsing.
220 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} 225 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {}
221 226
222 // The onload handler in the RenderView's main frame has completed. 227 // The onload handler in the RenderView's main frame has completed.
223 virtual void DocumentOnLoadCompletedInMainFrame( 228 virtual void DocumentOnLoadCompletedInMainFrame(
224 RenderViewHost* render_view_host, 229 RenderViewHost* render_view_host,
225 int32 page_id) {} 230 int32 page_id) {}
226 231
227 // The page wants to open a URL with the specified disposition. 232 // The page wants to open a URL with the specified disposition.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 const MediaStreamRequest& request, 414 const MediaStreamRequest& request,
410 const MediaResponseCallback& callback) {} 415 const MediaResponseCallback& callback) {}
411 416
412 protected: 417 protected:
413 virtual ~RenderViewHostDelegate() {} 418 virtual ~RenderViewHostDelegate() {}
414 }; 419 };
415 420
416 } // namespace content 421 } // namespace content
417 422
418 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 423 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/render_view_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698