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

Side by Side Diff: sky/engine/core/dom/DocumentParser.h

Issue 680583003: Delete ScriptableDocumentParser (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Sort headers Created 6 years, 2 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 | « sky/engine/core/dom/DocumentFragment.cpp ('k') | sky/engine/core/dom/Element.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) 2000 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2005, 2006 Apple Computer, Inc. 3 * Copyright (C) 2005, 2006 Apple Computer, Inc.
4 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 4 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
5 * Copyright (C) 2010 Google, Inc. 5 * Copyright (C) 2010 Google, Inc.
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 14 matching lines...) Expand all
25 #define DocumentParser_h 25 #define DocumentParser_h
26 26
27 #include "platform/heap/Handle.h" 27 #include "platform/heap/Handle.h"
28 #include "wtf/Forward.h" 28 #include "wtf/Forward.h"
29 #include "wtf/RefCounted.h" 29 #include "wtf/RefCounted.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class Document; 33 class Document;
34 class SegmentedString; 34 class SegmentedString;
35 class ScriptableDocumentParser; 35 class HTMLDocumentParser;
36 class TextResourceDecoder; 36 class TextResourceDecoder;
37 37
38 class DocumentParser : public RefCountedWillBeGarbageCollectedFinalized<Document Parser> { 38 class DocumentParser : public RefCountedWillBeGarbageCollectedFinalized<Document Parser> {
39 public: 39 public:
40 virtual ~DocumentParser(); 40 virtual ~DocumentParser();
41 virtual void trace(Visitor*); 41 virtual void trace(Visitor*);
42 42
43 virtual ScriptableDocumentParser* asScriptableDocumentParser() { return 0; } 43 virtual HTMLDocumentParser* asHTMLDocumentParser() { return 0; }
44 44
45 // http://www.whatwg.org/specs/web-apps/current-work/#insertion-point 45 // http://www.whatwg.org/specs/web-apps/current-work/#insertion-point
46 virtual bool hasInsertionPoint() { return true; } 46 virtual bool hasInsertionPoint() { return true; }
47 47
48 // insert is used by document.write. 48 // insert is used by document.write.
49 virtual void insert(const SegmentedString&) = 0; 49 virtual void insert(const SegmentedString&) = 0;
50 50
51 // The below functions are used by DocumentWriter (the loader). 51 // The below functions are used by DocumentWriter (the loader).
52 virtual void appendBytes(const char* bytes, size_t length) = 0; 52 virtual void appendBytes(const char* bytes, size_t length) = 0;
53 53
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 ParserState m_state; 101 ParserState m_state;
102 102
103 // Every DocumentParser needs a pointer back to the document. 103 // Every DocumentParser needs a pointer back to the document.
104 // m_document will be 0 after the parser is stopped. 104 // m_document will be 0 after the parser is stopped.
105 RawPtrWillBeMember<Document> m_document; 105 RawPtrWillBeMember<Document> m_document;
106 }; 106 };
107 107
108 } // namespace blink 108 } // namespace blink
109 109
110 #endif // DocumentParser_h 110 #endif // DocumentParser_h
OLDNEW
« no previous file with comments | « sky/engine/core/dom/DocumentFragment.cpp ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698