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

Side by Side Diff: third_party/WebKit/public/web/WebFrameClient.h

Issue 2171063002: Notify the Blink client synchronously if the initial doc is accessed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forbid scripts. Created 4 years, 5 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 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Returns a blame context for attributing work belonging to this frame. 150 // Returns a blame context for attributing work belonging to this frame.
151 virtual BlameContext* frameBlameContext() { return nullptr; } 151 virtual BlameContext* frameBlameContext() { return nullptr; }
152 152
153 // General notifications ----------------------------------------------- 153 // General notifications -----------------------------------------------
154 154
155 // Indicates if creating a plugin without an associated renderer is supporte d. 155 // Indicates if creating a plugin without an associated renderer is supporte d.
156 virtual bool canCreatePluginWithoutRenderer(const WebString& mimeType) { ret urn false; } 156 virtual bool canCreatePluginWithoutRenderer(const WebString& mimeType) { ret urn false; }
157 157
158 // Indicates that another page has accessed the DOM of the initial empty 158 // Indicates that another page has accessed the DOM of the initial empty
159 // document of a main frame. After this, it is no longer safe to show a 159 // document of a main frame. After this, it is no longer safe to show a
160 // pending navigation's URL, because a URL spoof is possible. 160 // pending navigation's URL, because a URL spoof is possible. The client
161 // must not call back into JavaScript during this notification.
161 virtual void didAccessInitialDocument() { } 162 virtual void didAccessInitialDocument() { }
162 163
163 // A child frame was created in this frame. This is called when the frame 164 // A child frame was created in this frame. This is called when the frame
164 // is created and initialized. Takes the name of the new frame, the parent 165 // is created and initialized. Takes the name of the new frame, the parent
165 // frame and returns a new WebFrame. The WebFrame is considered in-use 166 // frame and returns a new WebFrame. The WebFrame is considered in-use
166 // until frameDetached() is called on it. 167 // until frameDetached() is called on it.
167 // Note: If you override this, you should almost certainly be overriding 168 // Note: If you override this, you should almost certainly be overriding
168 // frameDetached(). 169 // frameDetached().
169 virtual WebFrame* createChildFrame(WebLocalFrame* parent, WebTreeScopeType, const WebString& name, const WebString& uniqueName, WebSandboxFlags sandboxFlags , const WebFrameOwnerProperties&) { return nullptr; } 170 virtual WebFrame* createChildFrame(WebLocalFrame* parent, WebTreeScopeType, const WebString& name, const WebString& uniqueName, WebSandboxFlags sandboxFlags , const WebFrameOwnerProperties&) { return nullptr; }
170 171
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 return WebPageVisibilityStateVisible; 722 return WebPageVisibilityStateVisible;
722 } 723 }
723 724
724 protected: 725 protected:
725 virtual ~WebFrameClient() { } 726 virtual ~WebFrameClient() { }
726 }; 727 };
727 728
728 } // namespace blink 729 } // namespace blink
729 730
730 #endif 731 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698