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

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

Issue 1875593003: Revert of Store the list of trial tokens in OriginTrialContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 class LocalFrame; 135 class LocalFrame;
136 class Location; 136 class Location;
137 class MainThreadTaskRunner; 137 class MainThreadTaskRunner;
138 class MediaQueryListListener; 138 class MediaQueryListListener;
139 class MediaQueryMatcher; 139 class MediaQueryMatcher;
140 class NodeFilter; 140 class NodeFilter;
141 class NodeIntersectionObserverData; 141 class NodeIntersectionObserverData;
142 class NodeIterator; 142 class NodeIterator;
143 class NthIndexCache; 143 class NthIndexCache;
144 class OriginAccessEntry; 144 class OriginAccessEntry;
145 class OriginTrialContext;
145 class Page; 146 class Page;
146 class PlatformMouseEvent; 147 class PlatformMouseEvent;
147 class ProcessingInstruction; 148 class ProcessingInstruction;
148 class QualifiedName; 149 class QualifiedName;
149 class Range; 150 class Range;
150 class LayoutView; 151 class LayoutView;
151 class ResourceFetcher; 152 class ResourceFetcher;
152 class SVGDocumentExtensions; 153 class SVGDocumentExtensions;
153 class SVGUseElement; 154 class SVGUseElement;
154 class ScriptRunner; 155 class ScriptRunner;
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 void dispose() override; 1072 void dispose() override;
1072 #endif 1073 #endif
1073 1074
1074 virtual RawPtr<Document> cloneDocumentWithoutChildren(); 1075 virtual RawPtr<Document> cloneDocumentWithoutChildren();
1075 1076
1076 bool importContainerNodeChildren(ContainerNode* oldContainerNode, RawPtr<Con tainerNode> newContainerNode, ExceptionState&); 1077 bool importContainerNodeChildren(ContainerNode* oldContainerNode, RawPtr<Con tainerNode> newContainerNode, ExceptionState&);
1077 void lockCompatibilityMode() { m_compatibilityModeLocked = true; } 1078 void lockCompatibilityMode() { m_compatibilityModeLocked = true; }
1078 ParserSynchronizationPolicy getParserSynchronizationPolicy() const { return m_parserSyncPolicy; } 1079 ParserSynchronizationPolicy getParserSynchronizationPolicy() const { return m_parserSyncPolicy; }
1079 1080
1080 private: 1081 private:
1082 friend class DocumentOriginTrialContextTest;
1081 friend class IgnoreDestructiveWriteCountIncrementer; 1083 friend class IgnoreDestructiveWriteCountIncrementer;
1082 friend class NthIndexCache; 1084 friend class NthIndexCache;
1083 1085
1084 bool isDocumentFragment() const = delete; // This will catch anyone doing an unnecessary check. 1086 bool isDocumentFragment() const = delete; // This will catch anyone doing an unnecessary check.
1085 bool isDocumentNode() const = delete; // This will catch anyone doing an unn ecessary check. 1087 bool isDocumentNode() const = delete; // This will catch anyone doing an unn ecessary check.
1086 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check. 1088 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check.
1087 1089
1088 ScriptedAnimationController& ensureScriptedAnimationController(); 1090 ScriptedAnimationController& ensureScriptedAnimationController();
1089 ScriptedIdleTaskController& ensureScriptedIdleTaskController(); 1091 ScriptedIdleTaskController& ensureScriptedIdleTaskController();
1090 void initSecurityContext(const DocumentInit&); 1092 void initSecurityContext(const DocumentInit&);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 1156
1155 void setHoverNode(RawPtr<Node>); 1157 void setHoverNode(RawPtr<Node>);
1156 1158
1157 using EventFactorySet = HashSet<OwnPtr<EventFactoryBase>>; 1159 using EventFactorySet = HashSet<OwnPtr<EventFactoryBase>>;
1158 static EventFactorySet& eventFactories(); 1160 static EventFactorySet& eventFactories();
1159 1161
1160 void setNthIndexCache(NthIndexCache* nthIndexCache) { ASSERT(!m_nthIndexCach e || !nthIndexCache); m_nthIndexCache = nthIndexCache; } 1162 void setNthIndexCache(NthIndexCache* nthIndexCache) { ASSERT(!m_nthIndexCach e || !nthIndexCache); m_nthIndexCache = nthIndexCache; }
1161 1163
1162 const OriginAccessEntry& accessEntryFromURL(); 1164 const OriginAccessEntry& accessEntryFromURL();
1163 1165
1166 RawPtr<OriginTrialContext> createOriginTrialContext() override;
1167
1164 DocumentLifecycle m_lifecycle; 1168 DocumentLifecycle m_lifecycle;
1165 1169
1166 bool m_hasNodesWithPlaceholderStyle; 1170 bool m_hasNodesWithPlaceholderStyle;
1167 bool m_evaluateMediaQueriesOnStyleRecalc; 1171 bool m_evaluateMediaQueriesOnStyleRecalc;
1168 1172
1169 // If we do ignore the pending stylesheet count, then we need to add a boole an 1173 // If we do ignore the pending stylesheet count, then we need to add a boole an
1170 // to track that this happened so that we can do a full repaint when the sty lesheets 1174 // to track that this happened so that we can do a full repaint when the sty lesheets
1171 // do eventually load. 1175 // do eventually load.
1172 PendingSheetLayout m_pendingSheetLayout; 1176 PendingSheetLayout m_pendingSheetLayout;
1173 1177
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1447 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1444 1448
1445 } // namespace blink 1449 } // namespace blink
1446 1450
1447 #ifndef NDEBUG 1451 #ifndef NDEBUG
1448 // Outside the WebCore namespace for ease of invocation from gdb. 1452 // Outside the WebCore namespace for ease of invocation from gdb.
1449 CORE_EXPORT void showLiveDocumentInstances(); 1453 CORE_EXPORT void showLiveDocumentInstances();
1450 #endif 1454 #endif
1451 1455
1452 #endif // Document_h 1456 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698