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

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

Issue 986583002: Collect host of Web Component usage to send to RAPPOR (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix typo Created 5 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
« no previous file with comments | « Source/core/core.gypi ('k') | 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 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "core/dom/DocumentTiming.h" 42 #include "core/dom/DocumentTiming.h"
43 #include "core/dom/ExecutionContext.h" 43 #include "core/dom/ExecutionContext.h"
44 #include "core/dom/MutationObserver.h" 44 #include "core/dom/MutationObserver.h"
45 #include "core/dom/TextLinkColors.h" 45 #include "core/dom/TextLinkColors.h"
46 #include "core/dom/TreeScope.h" 46 #include "core/dom/TreeScope.h"
47 #include "core/dom/UserActionElementSet.h" 47 #include "core/dom/UserActionElementSet.h"
48 #include "core/dom/ViewportDescription.h" 48 #include "core/dom/ViewportDescription.h"
49 #include "core/dom/custom/CustomElement.h" 49 #include "core/dom/custom/CustomElement.h"
50 #include "core/frame/DOMTimerCoordinator.h" 50 #include "core/frame/DOMTimerCoordinator.h"
51 #include "core/frame/LocalDOMWindow.h" 51 #include "core/frame/LocalDOMWindow.h"
52 #include "core/frame/OriginsUsingFeatures.h"
52 #include "core/html/CollectionType.h" 53 #include "core/html/CollectionType.h"
53 #include "core/html/parser/ParserSynchronizationPolicy.h" 54 #include "core/html/parser/ParserSynchronizationPolicy.h"
54 #include "core/page/PageVisibilityState.h" 55 #include "core/page/PageVisibilityState.h"
55 #include "platform/Length.h" 56 #include "platform/Length.h"
56 #include "platform/Timer.h" 57 #include "platform/Timer.h"
57 #include "platform/heap/Handle.h" 58 #include "platform/heap/Handle.h"
58 #include "platform/weborigin/KURL.h" 59 #include "platform/weborigin/KURL.h"
59 #include "platform/weborigin/ReferrerPolicy.h" 60 #include "platform/weborigin/ReferrerPolicy.h"
60 #include "public/platform/WebFocusType.h" 61 #include "public/platform/WebFocusType.h"
61 #include "wtf/HashSet.h" 62 #include "wtf/HashSet.h"
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 1055
1055 AtomicString convertLocalName(const AtomicString&); 1056 AtomicString convertLocalName(const AtomicString&);
1056 1057
1057 void platformColorsChanged(); 1058 void platformColorsChanged();
1058 1059
1059 virtual DOMTimerCoordinator* timers() override final; 1060 virtual DOMTimerCoordinator* timers() override final;
1060 1061
1061 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override; 1062 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override;
1062 virtual v8::Handle<v8::Object> associateWithWrapper(v8::Isolate*, const Wrap perTypeInfo*, v8::Handle<v8::Object> wrapper) override; 1063 virtual v8::Handle<v8::Object> associateWithWrapper(v8::Isolate*, const Wrap perTypeInfo*, v8::Handle<v8::Object> wrapper) override;
1063 1064
1065 OriginsUsingFeatures::Value& originsUsingFeaturesValue() { return m_originsU singFeaturesValue; }
1066
1064 protected: 1067 protected:
1065 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 1068 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
1066 1069
1067 virtual void didUpdateSecurityOrigin() override final; 1070 virtual void didUpdateSecurityOrigin() override final;
1068 1071
1069 void clearXMLVersion() { m_xmlVersion = String(); } 1072 void clearXMLVersion() { m_xmlVersion = String(); }
1070 1073
1071 #if !ENABLE(OILPAN) 1074 #if !ENABLE(OILPAN)
1072 virtual void dispose() override; 1075 virtual void dispose() override;
1073 #endif 1076 #endif
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 DOMTimerCoordinator m_timers; 1391 DOMTimerCoordinator m_timers;
1389 1392
1390 bool m_hasViewportUnits; 1393 bool m_hasViewportUnits;
1391 1394
1392 using DocumentVisibilityObserverSet = WillBeHeapHashSet<RawPtrWillBeWeakMemb er<DocumentVisibilityObserver>>; 1395 using DocumentVisibilityObserverSet = WillBeHeapHashSet<RawPtrWillBeWeakMemb er<DocumentVisibilityObserver>>;
1393 DocumentVisibilityObserverSet m_visibilityObservers; 1396 DocumentVisibilityObserverSet m_visibilityObservers;
1394 1397
1395 int m_styleRecalcElementCounter; 1398 int m_styleRecalcElementCounter;
1396 1399
1397 ParserSynchronizationPolicy m_parserSyncPolicy; 1400 ParserSynchronizationPolicy m_parserSyncPolicy;
1401
1402 OriginsUsingFeatures::Value m_originsUsingFeaturesValue;
1398 }; 1403 };
1399 1404
1400 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) 1405 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin)
1401 { 1406 {
1402 // The different (legacy) meta tags have different priorities based on the t ype 1407 // The different (legacy) meta tags have different priorities based on the t ype
1403 // regardless of which order they appear in the DOM. The priority is given b y the 1408 // regardless of which order they appear in the DOM. The priority is given b y the
1404 // ViewportDescription::Type enum. 1409 // ViewportDescription::Type enum.
1405 return origin >= m_legacyViewportDescription.type; 1410 return origin >= m_legacyViewportDescription.type;
1406 } 1411 }
1407 1412
(...skipping 27 matching lines...) Expand all
1435 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1440 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1436 1441
1437 } // namespace blink 1442 } // namespace blink
1438 1443
1439 #ifndef NDEBUG 1444 #ifndef NDEBUG
1440 // Outside the WebCore namespace for ease of invocation from gdb. 1445 // Outside the WebCore namespace for ease of invocation from gdb.
1441 void showLiveDocumentInstances(); 1446 void showLiveDocumentInstances();
1442 #endif 1447 #endif
1443 1448
1444 #endif // Document_h 1449 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698