// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_DOM_DOCUMENT_DATA_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_DOM_DOCUMENT_DATA_H_ #include "services/network/public/mojom/trust_tokens.mojom-blink.h" #include "third_party/blink/public/mojom/permissions/permission.mojom-blink.h" #include "third_party/blink/renderer/platform/bindings/script_regexp.h" #include "third_party/blink/renderer/platform/heap/collection_support/heap_hash_set.h" #include "third_party/blink/renderer/platform/mojo/heap_mojo_remote.h" namespace blink { // The purpose of blink::DocumentData is to reduce the size of document.h. // Data members which require huge headers should be stored in // blink::DocumentData instead of blink::Document. // // Ownership: A Document has a strong reference to a single DocumentData. // Other instances should not have strong references to the DocumentData. // Lifetime: A DocumentData instance is created on a Document creation, and // is never destructed before the Document. class DocumentData final : public GarbageCollected<DocumentData> { … }; } // namespace blink #endif // THIRD_PARTY_BLINK_RENDERER_CORE_DOM_DOCUMENT_DATA_H_