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

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

Issue 155309: Chrome-side of fixes for content-script messaging. (Closed)
Patch Set: temporary webkit hack Created 11 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
« no previous file with comments | « webkit/glue/webframeloaderclient_impl.cc ('k') | no next file » | 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 // Notifies that the documentElement for the document in a webframe has been 225 // Notifies that the documentElement for the document in a webframe has been
226 // created. This is called before anything else is parsed or executed for the 226 // created. This is called before anything else is parsed or executed for the
227 // document. 227 // document.
228 virtual void DocumentElementAvailable(WebFrame* webframe) { 228 virtual void DocumentElementAvailable(WebFrame* webframe) {
229 } 229 }
230 230
231 // Notifies that a new script context has been created for this frame. 231 // Notifies that a new script context has been created for this frame.
232 // This is similar to WindowObjectCleared but only called once per frame 232 // This is similar to WindowObjectCleared but only called once per frame
233 // context. 233 // context.
234 virtual void DidCreateScriptContext(WebFrame* webframe) { 234 virtual void DidCreateScriptContextForFrame(WebFrame* webframe) {
235 } 235 }
236 236
237 // Notifies that this frame's script context has been destroyed. 237 // Notifies that this frame's script context has been destroyed.
238 virtual void DidDestroyScriptContext(WebFrame* webframe) { 238 virtual void DidDestroyScriptContextForFrame(WebFrame* webframe) {
239 }
240
241 // Notifies that a garbage-collected context was created - content scripts.
242 virtual void DidCreateIsolatedScriptContext(WebFrame* webframe) {
239 } 243 }
240 244
241 // PolicyDelegate ---------------------------------------------------------- 245 // PolicyDelegate ----------------------------------------------------------
242 246
243 // This method is called to notify the delegate, and let it modify a 247 // This method is called to notify the delegate, and let it modify a
244 // proposed navigation. It will be called before loading starts, and 248 // proposed navigation. It will be called before loading starts, and
245 // on every redirect. 249 // on every redirect.
246 // 250 //
247 // disposition specifies what should normally happen for this 251 // disposition specifies what should normally happen for this
248 // navigation (open in current tab, start a new tab, start a new 252 // navigation (open in current tab, start a new tab, start a new
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 virtual void DidAddHistoryItem() { } 831 virtual void DidAddHistoryItem() { }
828 832
829 WebViewDelegate() { } 833 WebViewDelegate() { }
830 virtual ~WebViewDelegate() { } 834 virtual ~WebViewDelegate() { }
831 835
832 private: 836 private:
833 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); 837 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate);
834 }; 838 };
835 839
836 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ 840 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webframeloaderclient_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698