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

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: Rebase 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 class LocalFrame; 133 class LocalFrame;
134 class Location; 134 class Location;
135 class MainThreadTaskRunner; 135 class MainThreadTaskRunner;
136 class MediaQueryListListener; 136 class MediaQueryListListener;
137 class MediaQueryMatcher; 137 class MediaQueryMatcher;
138 class NodeFilter; 138 class NodeFilter;
139 class NodeIntersectionObserverData; 139 class NodeIntersectionObserverData;
140 class NodeIterator; 140 class NodeIterator;
141 class NthIndexCache; 141 class NthIndexCache;
142 class OriginAccessEntry; 142 class OriginAccessEntry;
143 class OriginTrialContext;
143 class Page; 144 class Page;
144 class PlatformMouseEvent; 145 class PlatformMouseEvent;
145 class ProcessingInstruction; 146 class ProcessingInstruction;
146 class QualifiedName; 147 class QualifiedName;
147 class Range; 148 class Range;
148 class LayoutView; 149 class LayoutView;
149 class ResourceFetcher; 150 class ResourceFetcher;
150 class SVGDocumentExtensions; 151 class SVGDocumentExtensions;
151 class SVGUseElement; 152 class SVGUseElement;
152 class ScriptRunner; 153 class ScriptRunner;
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 void dispose() override; 1073 void dispose() override;
1073 #endif 1074 #endif
1074 1075
1075 virtual PassRefPtrWillBeRawPtr<Document> cloneDocumentWithoutChildren(); 1076 virtual PassRefPtrWillBeRawPtr<Document> cloneDocumentWithoutChildren();
1076 1077
1077 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr WillBeRawPtr<ContainerNode> newContainerNode, ExceptionState&); 1078 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr WillBeRawPtr<ContainerNode> newContainerNode, ExceptionState&);
1078 void lockCompatibilityMode() { m_compatibilityModeLocked = true; } 1079 void lockCompatibilityMode() { m_compatibilityModeLocked = true; }
1079 ParserSynchronizationPolicy getParserSynchronizationPolicy() const { return m_parserSyncPolicy; } 1080 ParserSynchronizationPolicy getParserSynchronizationPolicy() const { return m_parserSyncPolicy; }
1080 1081
1081 private: 1082 private:
1083 friend class DocumentOriginTrialContextTest;
1082 friend class IgnoreDestructiveWriteCountIncrementer; 1084 friend class IgnoreDestructiveWriteCountIncrementer;
1083 friend class NthIndexCache; 1085 friend class NthIndexCache;
1084 1086
1085 bool isDocumentFragment() const = delete; // This will catch anyone doing an unnecessary check. 1087 bool isDocumentFragment() const = delete; // This will catch anyone doing an unnecessary check.
1086 bool isDocumentNode() const = delete; // This will catch anyone doing an unn ecessary check. 1088 bool isDocumentNode() const = delete; // This will catch anyone doing an unn ecessary check.
1087 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check. 1089 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check.
1088 1090
1089 ScriptedAnimationController& ensureScriptedAnimationController(); 1091 ScriptedAnimationController& ensureScriptedAnimationController();
1090 ScriptedIdleTaskController& ensureScriptedIdleTaskController(); 1092 ScriptedIdleTaskController& ensureScriptedIdleTaskController();
1091 void initSecurityContext(const DocumentInit&); 1093 void initSecurityContext(const DocumentInit&);
(...skipping 63 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 PassOwnPtrWillBeRawPtr<OriginTrialContext> createOriginTrialContext() overri de;
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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1449 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1446 1450
1447 } // namespace blink 1451 } // namespace blink
1448 1452
1449 #ifndef NDEBUG 1453 #ifndef NDEBUG
1450 // Outside the WebCore namespace for ease of invocation from gdb. 1454 // Outside the WebCore namespace for ease of invocation from gdb.
1451 CORE_EXPORT void showLiveDocumentInstances(); 1455 CORE_EXPORT void showLiveDocumentInstances();
1452 #endif 1456 #endif
1453 1457
1454 #endif // Document_h 1458 #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