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

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

Issue 2112593003: [DevTools] Remove [V8] from InspectorInstrumentation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: migrated to inspector-protocol test Created 4 years, 5 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 5167 matching lines...) Expand 10 before | Expand all | Expand 10 after
5178 return *m_intersectionObserverController; 5178 return *m_intersectionObserverController;
5179 } 5179 }
5180 5180
5181 NodeIntersectionObserverData& Document::ensureIntersectionObserverData() 5181 NodeIntersectionObserverData& Document::ensureIntersectionObserverData()
5182 { 5182 {
5183 if (!m_intersectionObserverData) 5183 if (!m_intersectionObserverData)
5184 m_intersectionObserverData = new NodeIntersectionObserverData(); 5184 m_intersectionObserverData = new NodeIntersectionObserverData();
5185 return *m_intersectionObserverData; 5185 return *m_intersectionObserverData;
5186 } 5186 }
5187 5187
5188 void Document::reportBlockedScriptExecutionToInspector(const String& directiveTe xt)
5189 {
5190 InspectorInstrumentation::scriptExecutionBlockedByCSP(this, directiveText);
5191 }
5192
5193 static void runAddConsoleMessageTask(MessageSource source, MessageLevel level, c onst String& message, ExecutionContext* context) 5188 static void runAddConsoleMessageTask(MessageSource source, MessageLevel level, c onst String& message, ExecutionContext* context)
5194 { 5189 {
5195 context->addConsoleMessage(ConsoleMessage::create(source, level, message)); 5190 context->addConsoleMessage(ConsoleMessage::create(source, level, message));
5196 } 5191 }
5197 5192
5198 void Document::addConsoleMessage(ConsoleMessage* consoleMessage) 5193 void Document::addConsoleMessage(ConsoleMessage* consoleMessage)
5199 { 5194 {
5200 if (!isContextThread()) { 5195 if (!isContextThread()) {
5201 m_taskRunner->postTask(BLINK_FROM_HERE, createCrossThreadTask(&runAddCon soleMessageTask, consoleMessage->source(), consoleMessage->level(), consoleMessa ge->message())); 5196 m_taskRunner->postTask(BLINK_FROM_HERE, createCrossThreadTask(&runAddCon soleMessageTask, consoleMessage->source(), consoleMessage->level(), consoleMessa ge->message()));
5202 return; 5197 return;
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
6030 } 6025 }
6031 6026
6032 void showLiveDocumentInstances() 6027 void showLiveDocumentInstances()
6033 { 6028 {
6034 WeakDocumentSet& set = liveDocumentSet(); 6029 WeakDocumentSet& set = liveDocumentSet();
6035 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6030 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6036 for (Document* document : set) 6031 for (Document* document : set)
6037 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); 6032 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data());
6038 } 6033 }
6039 #endif 6034 #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