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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2098433002: Remove ExecutionContextTask::taskNameForInstrumentation() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 5198 matching lines...) Expand 10 before | Expand all | Expand 10 after
5209 ScriptableDocumentParser* parser = scriptableDocumentParser(); 5209 ScriptableDocumentParser* parser = scriptableDocumentParser();
5210 if (parser->isParsingAtLineNumber()) 5210 if (parser->isParsingAtLineNumber())
5211 lineNumber = parser->lineNumber().oneBasedInt(); 5211 lineNumber = parser->lineNumber().oneBasedInt();
5212 } 5212 }
5213 consoleMessage = ConsoleMessage::create(consoleMessage->source(), consol eMessage->level(), consoleMessage->message(), SourceLocation::create(url().getSt ring(), lineNumber, 0, nullptr), consoleMessage->scriptArguments()); 5213 consoleMessage = ConsoleMessage::create(consoleMessage->source(), consol eMessage->level(), consoleMessage->message(), SourceLocation::create(url().getSt ring(), lineNumber, 0, nullptr), consoleMessage->scriptArguments());
5214 } 5214 }
5215 m_frame->console().addMessage(consoleMessage); 5215 m_frame->console().addMessage(consoleMessage);
5216 } 5216 }
5217 5217
5218 // FIXME(crbug.com/305497): This should be removed after ExecutionContext-LocalD OMWindow migration. 5218 // FIXME(crbug.com/305497): This should be removed after ExecutionContext-LocalD OMWindow migration.
5219 void Document::postTask(const WebTraceLocation& location, std::unique_ptr<Execut ionContextTask> task) 5219 void Document::postTask(const WebTraceLocation& location, std::unique_ptr<Execut ionContextTask> task, const String& taskNameForInstrumentation)
5220 { 5220 {
5221 m_taskRunner->postTask(location, std::move(task)); 5221 m_taskRunner->postTask(location, std::move(task), taskNameForInstrumentation );
5222 } 5222 }
5223 5223
5224 void Document::postInspectorTask(const WebTraceLocation& location, std::unique_p tr<ExecutionContextTask> task) 5224 void Document::postInspectorTask(const WebTraceLocation& location, std::unique_p tr<ExecutionContextTask> task)
5225 { 5225 {
5226 m_taskRunner->postInspectorTask(location, std::move(task)); 5226 m_taskRunner->postInspectorTask(location, std::move(task));
5227 } 5227 }
5228 5228
5229 void Document::tasksWereSuspended() 5229 void Document::tasksWereSuspended()
5230 { 5230 {
5231 scriptRunner()->suspend(); 5231 scriptRunner()->suspend();
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
6027 } 6027 }
6028 6028
6029 void showLiveDocumentInstances() 6029 void showLiveDocumentInstances()
6030 { 6030 {
6031 WeakDocumentSet& set = liveDocumentSet(); 6031 WeakDocumentSet& set = liveDocumentSet();
6032 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6032 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6033 for (Document* document : set) 6033 for (Document* document : set)
6034 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); 6034 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data());
6035 } 6035 }
6036 #endif 6036 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698