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

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

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

Powered by Google App Engine
This is Rietveld 408576698