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

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

Issue 2534803002: Move InspectorTask handling from MainThreadTaskRunner to Document (Closed)
Patch Set: rebase Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2010, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 989
990 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; } 990 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; }
991 void parseDNSPrefetchControlHeader(const String&); 991 void parseDNSPrefetchControlHeader(const String&);
992 992
993 // FIXME(crbug.com/305497): This should be removed once LocalDOMWindow is an 993 // FIXME(crbug.com/305497): This should be removed once LocalDOMWindow is an
994 // ExecutionContext. 994 // ExecutionContext.
995 void postTask(const WebTraceLocation&, 995 void postTask(const WebTraceLocation&,
996 std::unique_ptr<ExecutionContextTask>, 996 std::unique_ptr<ExecutionContextTask>,
997 const String& taskNameForInstrumentation = emptyString()) 997 const String& taskNameForInstrumentation = emptyString())
998 override; // Executes the task on context's thread asynchronously. 998 override; // Executes the task on context's thread asynchronously.
999 void postInspectorTask(const WebTraceLocation&,
1000 std::unique_ptr<ExecutionContextTask>);
1001 999
1002 void tasksWereSuspended() final; 1000 void tasksWereSuspended() final;
1003 void tasksWereResumed() final; 1001 void tasksWereResumed() final;
1004 bool tasksNeedSuspension() final; 1002 bool tasksNeedSuspension() final;
1005 1003
1006 void finishedParsing(); 1004 void finishedParsing();
1007 1005
1008 void setEncodingData(const DocumentEncodingData& newData); 1006 void setEncodingData(const DocumentEncodingData& newData);
1009 const WTF::TextEncoding& encoding() const { 1007 const WTF::TextEncoding& encoding() const {
1010 return m_encodingData.encoding(); 1008 return m_encodingData.encoding();
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
1719 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1717 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1720 1718
1721 } // namespace blink 1719 } // namespace blink
1722 1720
1723 #ifndef NDEBUG 1721 #ifndef NDEBUG
1724 // Outside the WebCore namespace for ease of invocation from gdb. 1722 // Outside the WebCore namespace for ease of invocation from gdb.
1725 CORE_EXPORT void showLiveDocumentInstances(); 1723 CORE_EXPORT void showLiveDocumentInstances();
1726 #endif 1724 #endif
1727 1725
1728 #endif // Document_h 1726 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698