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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 21 matching lines...) Expand all
32 32
33 class Document; 33 class Document;
34 class DocumentInit; 34 class DocumentInit;
35 class DocumentType; 35 class DocumentType;
36 class ExceptionState; 36 class ExceptionState;
37 class LocalFrame; 37 class LocalFrame;
38 class HTMLDocument; 38 class HTMLDocument;
39 class KURL; 39 class KURL;
40 class XMLDocument; 40 class XMLDocument;
41 41
42 class CORE_EXPORT DOMImplementation final : public NoBaseWillBeGarbageCollected< DOMImplementation>, public ScriptWrappable { 42 class CORE_EXPORT DOMImplementation final : public GarbageCollected<DOMImplement ation>, public ScriptWrappable {
43 DEFINE_WRAPPERTYPEINFO(); 43 DEFINE_WRAPPERTYPEINFO();
44 USING_FAST_MALLOC_WILL_BE_REMOVED(DOMImplementation);
45 public: 44 public:
46 static PassOwnPtrWillBeRawPtr<DOMImplementation> create(Document& document) 45 static RawPtr<DOMImplementation> create(Document& document)
47 { 46 {
48 return adoptPtrWillBeNoop(new DOMImplementation(document)); 47 return (new DOMImplementation(document));
49 } 48 }
50 49
51 #if !ENABLE(OILPAN) 50 #if !ENABLE(OILPAN)
52 void ref() { m_document->ref(); } 51 void ref() { m_document->ref(); }
53 void deref() { m_document->deref(); } 52 void deref() { m_document->deref(); }
54 #endif 53 #endif
55 Document& document() const { return *m_document; } 54 Document& document() const { return *m_document; }
56 55
57 // DOM methods & attributes for DOMImplementation 56 // DOM methods & attributes for DOMImplementation
58 bool hasFeature() { return true; } 57 bool hasFeature() { return true; }
59 PassRefPtrWillBeRawPtr<DocumentType> createDocumentType(const AtomicString& qualifiedName, const String& publicId, const String& systemId, ExceptionState&); 58 RawPtr<DocumentType> createDocumentType(const AtomicString& qualifiedName, c onst String& publicId, const String& systemId, ExceptionState&);
60 PassRefPtrWillBeRawPtr<XMLDocument> createDocument(const AtomicString& names paceURI, const AtomicString& qualifiedName, DocumentType*, ExceptionState&); 59 RawPtr<XMLDocument> createDocument(const AtomicString& namespaceURI, const A tomicString& qualifiedName, DocumentType*, ExceptionState&);
61 60
62 // From the HTMLDOMImplementation interface 61 // From the HTMLDOMImplementation interface
63 PassRefPtrWillBeRawPtr<HTMLDocument> createHTMLDocument(const String& title) ; 62 RawPtr<HTMLDocument> createHTMLDocument(const String& title);
64 63
65 // Other methods (not part of DOM) 64 // Other methods (not part of DOM)
66 static PassRefPtrWillBeRawPtr<Document> createDocument(const String& mimeTyp e, const DocumentInit&, bool inViewSourceMode); 65 static RawPtr<Document> createDocument(const String& mimeType, const Documen tInit&, bool inViewSourceMode);
67 66
68 static bool isXMLMIMEType(const String&); 67 static bool isXMLMIMEType(const String&);
69 static bool isTextMIMEType(const String&); 68 static bool isTextMIMEType(const String&);
70 static bool isJSONMIMEType(const String&); 69 static bool isJSONMIMEType(const String&);
71 70
72 DECLARE_TRACE(); 71 DECLARE_TRACE();
73 72
74 private: 73 private:
75 explicit DOMImplementation(Document&); 74 explicit DOMImplementation(Document&);
76 75
77 RawPtrWillBeMember<Document> m_document; 76 Member<Document> m_document;
78 }; 77 };
79 78
80 } // namespace blink 79 } // namespace blink
81 80
82 #endif // DOMImplementation_h 81 #endif // DOMImplementation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698