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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoaderClient.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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 virtual ObjectContentType getObjectContentType( 208 virtual ObjectContentType getObjectContentType(
209 const KURL&, 209 const KURL&,
210 const String& mimeType, 210 const String& mimeType,
211 bool shouldPreferPlugInsForImages) = 0; 211 bool shouldPreferPlugInsForImages) = 0;
212 212
213 virtual void didCreateNewDocument() = 0; 213 virtual void didCreateNewDocument() = 0;
214 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; 214 virtual void dispatchDidClearWindowObjectInMainWorld() = 0;
215 virtual void documentElementAvailable() = 0; 215 virtual void documentElementAvailable() = 0;
216 virtual void runScriptsAtDocumentElementAvailable() = 0; 216 virtual void runScriptsAtDocumentElementAvailable() = 0;
217 virtual void runScriptsAtDocumentReady(bool documentIsEmpty) = 0; 217 virtual void runScriptsAtDocumentReady(bool documentIsEmpty) = 0;
218 virtual void runScriptsAtDocumentIdle() = 0;
218 219
219 virtual void didCreateScriptContext(v8::Local<v8::Context>, 220 virtual void didCreateScriptContext(v8::Local<v8::Context>,
220 int worldId) = 0; 221 int worldId) = 0;
221 virtual void willReleaseScriptContext(v8::Local<v8::Context>, 222 virtual void willReleaseScriptContext(v8::Local<v8::Context>,
222 int worldId) = 0; 223 int worldId) = 0;
223 virtual bool allowScriptExtensions() = 0; 224 virtual bool allowScriptExtensions() = 0;
224 225
225 virtual void didChangeScrollOffset() {} 226 virtual void didChangeScrollOffset() {}
226 virtual void didUpdateCurrentHistoryItem() {} 227 virtual void didUpdateCurrentHistoryItem() {}
227 228
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); } 338 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); }
338 339
339 virtual BlameContext* frameBlameContext() { return nullptr; } 340 virtual BlameContext* frameBlameContext() { return nullptr; }
340 341
341 virtual void setHasReceivedUserGesture() {} 342 virtual void setHasReceivedUserGesture() {}
342 }; 343 };
343 344
344 } // namespace blink 345 } // namespace blink
345 346
346 #endif // FrameLoaderClient_h 347 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698