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

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

Issue 2633253002: Split content script injections into multiple tasks (Closed)
Patch Set: comments addressed Created 3 years, 9 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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 393
394 // The frame's document finished loading. 394 // The frame's document finished loading.
395 // This method may not execute JavaScript code. 395 // This method may not execute JavaScript code.
396 virtual void didFinishDocumentLoad(WebLocalFrame*) {} 396 virtual void didFinishDocumentLoad(WebLocalFrame*) {}
397 397
398 // Like |didFinishDocumentLoad|, except this method may run JavaScript 398 // Like |didFinishDocumentLoad|, except this method may run JavaScript
399 // code (and possibly invalidate the frame). 399 // code (and possibly invalidate the frame).
400 virtual void runScriptsAtDocumentReady(WebLocalFrame*, bool documentIsEmpty) { 400 virtual void runScriptsAtDocumentReady(WebLocalFrame*, bool documentIsEmpty) {
401 } 401 }
402 402
403 // The frame's window.onload event is ready to fire. This method may delay
404 // window.onload by incrementing LoadEventDelayCount.
405 virtual void runScriptsAtDocumentIdle(WebLocalFrame*) {}
406
403 // The 'load' event was dispatched. 407 // The 'load' event was dispatched.
404 virtual void didHandleOnloadEvents(WebLocalFrame*) {} 408 virtual void didHandleOnloadEvents(WebLocalFrame*) {}
405 409
406 // The frame's document or one of its subresources failed to load. The 410 // The frame's document or one of its subresources failed to load. The
407 // WebHistoryCommitType is the commit type that would have been used had the 411 // WebHistoryCommitType is the commit type that would have been used had the
408 // load succeeded. 412 // load succeeded.
409 virtual void didFailLoad(WebLocalFrame*, 413 virtual void didFailLoad(WebLocalFrame*,
410 const WebURLError&, 414 const WebURLError&,
411 WebHistoryCommitType) {} 415 WebHistoryCommitType) {}
412 416
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 // Overwrites the given URL to use an HTML5 embed if possible. 751 // Overwrites the given URL to use an HTML5 embed if possible.
748 // An empty URL is returned if the URL is not overriden. 752 // An empty URL is returned if the URL is not overriden.
749 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { 753 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) {
750 return WebURL(); 754 return WebURL();
751 } 755 }
752 }; 756 };
753 757
754 } // namespace blink 758 } // namespace blink
755 759
756 #endif 760 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698