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

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

Issue 1743623002: [Experimental Framework] Make the OriginTrialContext a member of ExecutionContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nullptr crash, test that an error message was set Created 4 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) 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 r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 class ConsoleMessage; 83 class ConsoleMessage;
84 class ContextFeatures; 84 class ContextFeatures;
85 class CustomElementMicrotaskRunQueue; 85 class CustomElementMicrotaskRunQueue;
86 class CustomElementRegistrationContext; 86 class CustomElementRegistrationContext;
87 class DOMImplementation; 87 class DOMImplementation;
88 class DOMWindow; 88 class DOMWindow;
89 class DocumentFragment; 89 class DocumentFragment;
90 class DocumentLoader; 90 class DocumentLoader;
91 class DocumentMarkerController; 91 class DocumentMarkerController;
92 class DocumentNameCollection; 92 class DocumentNameCollection;
93 class DocumentOriginTrialContext;
93 class DocumentParser; 94 class DocumentParser;
94 class DocumentState; 95 class DocumentState;
95 class DocumentType; 96 class DocumentType;
96 class DocumentVisibilityObserver; 97 class DocumentVisibilityObserver;
97 class Element; 98 class Element;
98 class ElementDataCache; 99 class ElementDataCache;
99 class ElementRegistrationOptions; 100 class ElementRegistrationOptions;
100 class Event; 101 class Event;
101 class EventFactoryBase; 102 class EventFactoryBase;
102 class EventListener; 103 class EventListener;
(...skipping 30 matching lines...) Expand all
133 class LocalFrame; 134 class LocalFrame;
134 class Location; 135 class Location;
135 class MainThreadTaskRunner; 136 class MainThreadTaskRunner;
136 class MediaQueryListListener; 137 class MediaQueryListListener;
137 class MediaQueryMatcher; 138 class MediaQueryMatcher;
138 class NodeFilter; 139 class NodeFilter;
139 class NodeIntersectionObserverData; 140 class NodeIntersectionObserverData;
140 class NodeIterator; 141 class NodeIterator;
141 class NthIndexCache; 142 class NthIndexCache;
142 class OriginAccessEntry; 143 class OriginAccessEntry;
144 class OriginTrialContext;
143 class Page; 145 class Page;
144 class PlatformMouseEvent; 146 class PlatformMouseEvent;
145 class ProcessingInstruction; 147 class ProcessingInstruction;
146 class QualifiedName; 148 class QualifiedName;
147 class Range; 149 class Range;
148 class LayoutView; 150 class LayoutView;
149 class ResourceFetcher; 151 class ResourceFetcher;
150 class SVGDocumentExtensions; 152 class SVGDocumentExtensions;
151 class SVGUseElement; 153 class SVGUseElement;
152 class ScriptRunner; 154 class ScriptRunner;
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 1157
1156 void setHoverNode(PassRefPtrWillBeRawPtr<Node>); 1158 void setHoverNode(PassRefPtrWillBeRawPtr<Node>);
1157 1159
1158 using EventFactorySet = HashSet<OwnPtr<EventFactoryBase>>; 1160 using EventFactorySet = HashSet<OwnPtr<EventFactoryBase>>;
1159 static EventFactorySet& eventFactories(); 1161 static EventFactorySet& eventFactories();
1160 1162
1161 void setNthIndexCache(NthIndexCache* nthIndexCache) { ASSERT(!m_nthIndexCach e || !nthIndexCache); m_nthIndexCache = nthIndexCache; } 1163 void setNthIndexCache(NthIndexCache* nthIndexCache) { ASSERT(!m_nthIndexCach e || !nthIndexCache); m_nthIndexCache = nthIndexCache; }
1162 1164
1163 const OriginAccessEntry& accessEntryFromURL(); 1165 const OriginAccessEntry& accessEntryFromURL();
1164 1166
1167 OriginTrialContext* originTrialContext() override;
1168
1165 DocumentLifecycle m_lifecycle; 1169 DocumentLifecycle m_lifecycle;
1166 1170
1167 bool m_hasNodesWithPlaceholderStyle; 1171 bool m_hasNodesWithPlaceholderStyle;
1168 bool m_evaluateMediaQueriesOnStyleRecalc; 1172 bool m_evaluateMediaQueriesOnStyleRecalc;
1169 1173
1170 // If we do ignore the pending stylesheet count, then we need to add a boole an 1174 // If we do ignore the pending stylesheet count, then we need to add a boole an
1171 // to track that this happened so that we can do a full repaint when the sty lesheets 1175 // to track that this happened so that we can do a full repaint when the sty lesheets
1172 // do eventually load. 1176 // do eventually load.
1173 PendingSheetLayout m_pendingSheetLayout; 1177 PendingSheetLayout m_pendingSheetLayout;
1174 1178
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1395 1399
1396 OriginsUsingFeatures::Value m_originsUsingFeaturesValue; 1400 OriginsUsingFeatures::Value m_originsUsingFeaturesValue;
1397 1401
1398 ClientHintsPreferences m_clientHintsPreferences; 1402 ClientHintsPreferences m_clientHintsPreferences;
1399 1403
1400 PersistentWillBeMember<CanvasFontCache> m_canvasFontCache; 1404 PersistentWillBeMember<CanvasFontCache> m_canvasFontCache;
1401 1405
1402 PersistentWillBeMember<IntersectionObserverController> m_intersectionObserve rController; 1406 PersistentWillBeMember<IntersectionObserverController> m_intersectionObserve rController;
1403 PersistentWillBeMember<NodeIntersectionObserverData> m_intersectionObserverD ata; 1407 PersistentWillBeMember<NodeIntersectionObserverData> m_intersectionObserverD ata;
1404 1408
1409 OwnPtr<DocumentOriginTrialContext> m_originTrialContext;
jbroman 2016/02/29 20:41:53 nit: Why not just make this a plain member of Docu
1405 int m_nodeCount; 1410 int m_nodeCount;
1406 }; 1411 };
1407 1412
1408 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Document> ; 1413 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Document> ;
1409 1414
1410 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) 1415 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin)
1411 { 1416 {
1412 // The different (legacy) meta tags have different priorities based on the t ype 1417 // The different (legacy) meta tags have different priorities based on the t ype
1413 // regardless of which order they appear in the DOM. The priority is given b y the 1418 // regardless of which order they appear in the DOM. The priority is given b y the
1414 // ViewportDescription::Type enum. 1419 // ViewportDescription::Type enum.
(...skipping 30 matching lines...) Expand all
1445 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1450 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1446 1451
1447 } // namespace blink 1452 } // namespace blink
1448 1453
1449 #ifndef NDEBUG 1454 #ifndef NDEBUG
1450 // Outside the WebCore namespace for ease of invocation from gdb. 1455 // Outside the WebCore namespace for ease of invocation from gdb.
1451 CORE_EXPORT void showLiveDocumentInstances(); 1456 CORE_EXPORT void showLiveDocumentInstances();
1452 #endif 1457 #endif
1453 1458
1454 #endif // Document_h 1459 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698