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

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: 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
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/UseByOriginCounter.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 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 1051
1051 AtomicString convertLocalName(const AtomicString&); 1052 AtomicString convertLocalName(const AtomicString&);
1052 1053
1053 void platformColorsChanged(); 1054 void platformColorsChanged();
1054 1055
1055 virtual DOMTimerCoordinator* timers() override final; 1056 virtual DOMTimerCoordinator* timers() override final;
1056 1057
1057 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override; 1058 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override;
1058 virtual v8::Handle<v8::Object> associateWithWrapper(v8::Isolate*, const Wrap perTypeInfo*, v8::Handle<v8::Object> wrapper) override; 1059 virtual v8::Handle<v8::Object> associateWithWrapper(v8::Isolate*, const Wrap perTypeInfo*, v8::Handle<v8::Object> wrapper) override;
1059 1060
1061 UseByOriginCounter::Value& useByOriginCounterValue() { return m_useByOriginC ounterValue; }
1062
1060 protected: 1063 protected:
1061 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 1064 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
1062 1065
1063 virtual void didUpdateSecurityOrigin() override final; 1066 virtual void didUpdateSecurityOrigin() override final;
1064 1067
1065 void clearXMLVersion() { m_xmlVersion = String(); } 1068 void clearXMLVersion() { m_xmlVersion = String(); }
1066 1069
1067 #if !ENABLE(OILPAN) 1070 #if !ENABLE(OILPAN)
1068 virtual void dispose() override; 1071 virtual void dispose() override;
1069 #endif 1072 #endif
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 DOMTimerCoordinator m_timers; 1387 DOMTimerCoordinator m_timers;
1385 1388
1386 bool m_hasViewportUnits; 1389 bool m_hasViewportUnits;
1387 1390
1388 using DocumentVisibilityObserverSet = WillBeHeapHashSet<RawPtrWillBeWeakMemb er<DocumentVisibilityObserver>>; 1391 using DocumentVisibilityObserverSet = WillBeHeapHashSet<RawPtrWillBeWeakMemb er<DocumentVisibilityObserver>>;
1389 DocumentVisibilityObserverSet m_visibilityObservers; 1392 DocumentVisibilityObserverSet m_visibilityObservers;
1390 1393
1391 int m_styleRecalcElementCounter; 1394 int m_styleRecalcElementCounter;
1392 1395
1393 ParserSynchronizationPolicy m_parserSyncPolicy; 1396 ParserSynchronizationPolicy m_parserSyncPolicy;
1397
1398 UseByOriginCounter::Value m_useByOriginCounterValue;
1394 }; 1399 };
1395 1400
1396 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) 1401 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin)
1397 { 1402 {
1398 // The different (legacy) meta tags have different priorities based on the t ype 1403 // The different (legacy) meta tags have different priorities based on the t ype
1399 // regardless of which order they appear in the DOM. The priority is given b y the 1404 // regardless of which order they appear in the DOM. The priority is given b y the
1400 // ViewportDescription::Type enum. 1405 // ViewportDescription::Type enum.
1401 return origin >= m_legacyViewportDescription.type; 1406 return origin >= m_legacyViewportDescription.type;
1402 } 1407 }
1403 1408
(...skipping 27 matching lines...) Expand all
1431 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1436 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1432 1437
1433 } // namespace blink 1438 } // namespace blink
1434 1439
1435 #ifndef NDEBUG 1440 #ifndef NDEBUG
1436 // Outside the WebCore namespace for ease of invocation from gdb. 1441 // Outside the WebCore namespace for ease of invocation from gdb.
1437 void showLiveDocumentInstances(); 1442 void showLiveDocumentInstances();
1438 #endif 1443 #endif
1439 1444
1440 #endif // Document_h 1445 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698