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

Side by Side Diff: webkit/glue/webview_delegate.h

Issue 147124: Add notifications for when V8Proxy creates or destroys a V8 Context. (Closed)
Patch Set: roll deps Created 11 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
« no previous file with comments | « webkit/glue/webframeloaderclient_impl.cc ('k') | webkit/port/bindings/v8/v8_proxy.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // WebCore provides hooks for several kinds of functionality, allowing separate 5 // WebCore provides hooks for several kinds of functionality, allowing separate
6 // classes termed "delegates" to receive notifications (in the form of direct 6 // classes termed "delegates" to receive notifications (in the form of direct
7 // function calls) when certain events are about to occur or have just occurred. 7 // function calls) when certain events are about to occur or have just occurred.
8 // In some cases, the delegate implements the needed functionality; in others, 8 // In some cases, the delegate implements the needed functionality; in others,
9 // the delegate has some control over the behavior but doesn't actually 9 // the delegate has some control over the behavior but doesn't actually
10 // implement it. For example, the UI delegate is responsible for showing a 10 // implement it. For example, the UI delegate is responsible for showing a
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // using the original version of this function. 203 // using the original version of this function.
204 virtual void WindowObjectCleared(WebFrame* webframe) { 204 virtual void WindowObjectCleared(WebFrame* webframe) {
205 } 205 }
206 206
207 // Notifies that the documentElement for the document in a webframe has been 207 // Notifies that the documentElement for the document in a webframe has been
208 // created. This is called before anything else is parsed or executed for the 208 // created. This is called before anything else is parsed or executed for the
209 // document. 209 // document.
210 virtual void DocumentElementAvailable(WebFrame* webframe) { 210 virtual void DocumentElementAvailable(WebFrame* webframe) {
211 } 211 }
212 212
213 // Notifies that a new script context has been created for this frame.
214 // This is similar to WindowObjectCleared but only called once per frame
215 // context.
216 virtual void DidCreateScriptContext(WebFrame* webframe) {
217 }
218
219 // Notifies that this frame's script context has been destroyed.
220 virtual void DidDestroyScriptContext(WebFrame* webframe) {
221 }
222
213 // PolicyDelegate ---------------------------------------------------------- 223 // PolicyDelegate ----------------------------------------------------------
214 224
215 // This method is called to notify the delegate, and let it modify a 225 // This method is called to notify the delegate, and let it modify a
216 // proposed navigation. It will be called before loading starts, and 226 // proposed navigation. It will be called before loading starts, and
217 // on every redirect. 227 // on every redirect.
218 // 228 //
219 // disposition specifies what should normally happen for this 229 // disposition specifies what should normally happen for this
220 // navigation (open in current tab, start a new tab, start a new 230 // navigation (open in current tab, start a new tab, start a new
221 // window, etc). This method can return an altered disposition, and 231 // window, etc). This method can return an altered disposition, and
222 // take any additional separate action it wants to. 232 // take any additional separate action it wants to.
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 virtual void DidAddHistoryItem() { } 814 virtual void DidAddHistoryItem() { }
805 815
806 WebViewDelegate() { } 816 WebViewDelegate() { }
807 virtual ~WebViewDelegate() { } 817 virtual ~WebViewDelegate() { }
808 818
809 private: 819 private:
810 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); 820 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate);
811 }; 821 };
812 822
813 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ 823 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webframeloaderclient_impl.cc ('k') | webkit/port/bindings/v8/v8_proxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698