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

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

Issue 251823002: Move didAccessInitialDocument to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 7 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_RENDER_FRAME_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/common/javascript_message_type.h" 10 #include "content/public/common/javascript_message_type.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const base::string16& default_prompt, 72 const base::string16& default_prompt,
73 const GURL& frame_url, 73 const GURL& frame_url,
74 JavaScriptMessageType type, 74 JavaScriptMessageType type,
75 IPC::Message* reply_msg) {} 75 IPC::Message* reply_msg) {}
76 76
77 virtual void RunBeforeUnloadConfirm(RenderFrameHost* rfh, 77 virtual void RunBeforeUnloadConfirm(RenderFrameHost* rfh,
78 const base::string16& message, 78 const base::string16& message,
79 bool is_reload, 79 bool is_reload,
80 IPC::Message* reply_msg) {} 80 IPC::Message* reply_msg) {}
81 81
82 // Another page accessed the top-level initial empty document, which means it
83 // is no longer safe to display a pending URL without risking a URL spoof.
84 virtual void DidAccessInitialDocument() {}
85
82 // Return this object cast to a WebContents, if it is one. If the object is 86 // Return this object cast to a WebContents, if it is one. If the object is
83 // not a WebContents, returns NULL. 87 // not a WebContents, returns NULL.
84 virtual WebContents* GetAsWebContents(); 88 virtual WebContents* GetAsWebContents();
85 89
86 protected: 90 protected:
87 virtual ~RenderFrameHostDelegate() {} 91 virtual ~RenderFrameHostDelegate() {}
88 }; 92 };
89 93
90 } // namespace content 94 } // namespace content
91 95
92 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 96 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl_unittest.cc ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698