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

Side by Side Diff: third_party/WebKit/Source/web/LocalFrameClientImpl.cpp

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) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } 183 }
184 184
185 void LocalFrameClientImpl::runScriptsAtDocumentReady(bool documentIsEmpty) { 185 void LocalFrameClientImpl::runScriptsAtDocumentReady(bool documentIsEmpty) {
186 if (m_webFrame->client()) { 186 if (m_webFrame->client()) {
187 m_webFrame->client()->runScriptsAtDocumentReady(m_webFrame, 187 m_webFrame->client()->runScriptsAtDocumentReady(m_webFrame,
188 documentIsEmpty); 188 documentIsEmpty);
189 } 189 }
190 // The callback might have deleted the frame, do not use |this|! 190 // The callback might have deleted the frame, do not use |this|!
191 } 191 }
192 192
193 void LocalFrameClientImpl::runScriptsAtDocumentIdle() {
194 if (m_webFrame->client())
195 m_webFrame->client()->runScriptsAtDocumentIdle(m_webFrame);
196 // The callback might have deleted the frame, do not use |this|!
197 }
198
193 void LocalFrameClientImpl::didCreateScriptContext( 199 void LocalFrameClientImpl::didCreateScriptContext(
194 v8::Local<v8::Context> context, 200 v8::Local<v8::Context> context,
195 int worldId) { 201 int worldId) {
196 if (m_webFrame->client()) 202 if (m_webFrame->client())
197 m_webFrame->client()->didCreateScriptContext(m_webFrame, context, worldId); 203 m_webFrame->client()->didCreateScriptContext(m_webFrame, context, worldId);
198 } 204 }
199 205
200 void LocalFrameClientImpl::willReleaseScriptContext( 206 void LocalFrameClientImpl::willReleaseScriptContext(
201 v8::Local<v8::Context> context, 207 v8::Local<v8::Context> context,
202 int worldId) { 208 int worldId) {
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 KURL LocalFrameClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { 1025 KURL LocalFrameClientImpl::overrideFlashEmbedWithHTML(const KURL& url) {
1020 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); 1026 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url));
1021 } 1027 }
1022 1028
1023 void LocalFrameClientImpl::setHasReceivedUserGesture() { 1029 void LocalFrameClientImpl::setHasReceivedUserGesture() {
1024 if (m_webFrame->client()) 1030 if (m_webFrame->client())
1025 m_webFrame->client()->setHasReceivedUserGesture(); 1031 m_webFrame->client()->setHasReceivedUserGesture();
1026 } 1032 }
1027 1033
1028 } // namespace blink 1034 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/LocalFrameClientImpl.h ('k') | third_party/WebKit/Source/web/SuspendableScriptExecutor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698