OLD | NEW |
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 virtual bool processingData() const { return false; } | 72 virtual bool processingData() const { return false; } |
73 | 73 |
74 // document() will return 0 after detach() is called. | 74 // document() will return 0 after detach() is called. |
75 Document* document() const { ASSERT(m_document); return m_document; } | 75 Document* document() const { ASSERT(m_document); return m_document; } |
76 | 76 |
77 bool isParsing() const { return m_state == ParsingState; } | 77 bool isParsing() const { return m_state == ParsingState; } |
78 bool isStopping() const { return m_state == StoppingState; } | 78 bool isStopping() const { return m_state == StoppingState; } |
79 bool isStopped() const { return m_state >= StoppedState; } | 79 bool isStopped() const { return m_state >= StoppedState; } |
80 bool isDetached() const { return m_state == DetachedState; } | 80 bool isDetached() const { return m_state == DetachedState; } |
81 | 81 |
82 // FIXME: Is this necessary? Does XMLDocumentParserLibxml2 really need to se
t this? | |
83 virtual void startParsing(); | |
84 | |
85 // prepareToStop() is used when the EOF token is encountered and parsing is
to be | 82 // prepareToStop() is used when the EOF token is encountered and parsing is
to be |
86 // stopped normally. | 83 // stopped normally. |
87 virtual void prepareToStopParsing(); | 84 virtual void prepareToStopParsing(); |
88 | 85 |
89 // stopParsing() is used when a load is canceled/stopped. | 86 // stopParsing() is used when a load is canceled/stopped. |
90 // stopParsing() is currently different from detach(), but shouldn't be. | 87 // stopParsing() is currently different from detach(), but shouldn't be. |
91 // It should NOT be ok to call any methods on DocumentParser after either | 88 // It should NOT be ok to call any methods on DocumentParser after either |
92 // detach() or stopParsing() but right now only detach() will ASSERT. | 89 // detach() or stopParsing() but right now only detach() will ASSERT. |
93 virtual void stopParsing(); | 90 virtual void stopParsing(); |
94 | 91 |
(...skipping 26 matching lines...) Expand all Loading... |
121 bool m_documentWasLoadedAsPartOfNavigation; | 118 bool m_documentWasLoadedAsPartOfNavigation; |
122 | 119 |
123 // Every DocumentParser needs a pointer back to the document. | 120 // Every DocumentParser needs a pointer back to the document. |
124 // m_document will be 0 after the parser is stopped. | 121 // m_document will be 0 after the parser is stopped. |
125 RawPtrWillBeMember<Document> m_document; | 122 RawPtrWillBeMember<Document> m_document; |
126 }; | 123 }; |
127 | 124 |
128 } // namespace blink | 125 } // namespace blink |
129 | 126 |
130 #endif // DocumentParser_h | 127 #endif // DocumentParser_h |
OLD | NEW |