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

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

Issue 2633253002: Split content script injections into multiple tasks (Closed)
Patch Set: rebase 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 390
391 // The frame's document finished loading. 391 // The frame's document finished loading.
392 // This method may not execute JavaScript code. 392 // This method may not execute JavaScript code.
393 virtual void didFinishDocumentLoad(WebLocalFrame*) {} 393 virtual void didFinishDocumentLoad(WebLocalFrame*) {}
394 394
395 // Like |didFinishDocumentLoad|, except this method may run JavaScript 395 // Like |didFinishDocumentLoad|, except this method may run JavaScript
396 // code (and possibly invalidate the frame). 396 // code (and possibly invalidate the frame).
397 virtual void runScriptsAtDocumentReady(WebLocalFrame*, bool documentIsEmpty) { 397 virtual void runScriptsAtDocumentReady(WebLocalFrame*, bool documentIsEmpty) {
398 } 398 }
399 399
400 // The frame's window.onload event is about to fire. This method may delay
haraken 2017/03/02 03:54:32 Shall we drop the part of "The frame's window.onlo
Kunihiko Sakamoto 2017/03/06 09:11:06 document_idle scripts may run enough before window
401 // window.onload by incrementing LoadEventDelayCount.
402 virtual void runScriptsAtDocumentIdle(WebLocalFrame*) {}
403
400 // The 'load' event was dispatched. 404 // The 'load' event was dispatched.
401 virtual void didHandleOnloadEvents(WebLocalFrame*) {} 405 virtual void didHandleOnloadEvents(WebLocalFrame*) {}
402 406
403 // The frame's document or one of its subresources failed to load. The 407 // The frame's document or one of its subresources failed to load. The
404 // WebHistoryCommitType is the commit type that would have been used had the 408 // WebHistoryCommitType is the commit type that would have been used had the
405 // load succeeded. 409 // load succeeded.
406 virtual void didFailLoad(WebLocalFrame*, 410 virtual void didFailLoad(WebLocalFrame*,
407 const WebURLError&, 411 const WebURLError&,
408 WebHistoryCommitType) {} 412 WebHistoryCommitType) {}
409 413
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 // Overwrites the given URL to use an HTML5 embed if possible. 758 // Overwrites the given URL to use an HTML5 embed if possible.
755 // An empty URL is returned if the URL is not overriden. 759 // An empty URL is returned if the URL is not overriden.
756 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { 760 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) {
757 return WebURL(); 761 return WebURL();
758 } 762 }
759 }; 763 };
760 764
761 } // namespace blink 765 } // namespace blink
762 766
763 #endif 767 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698