| 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 28 matching lines...) Expand all Loading... |
| 39 class TextResourceDecoder; | 39 class TextResourceDecoder; |
| 40 | 40 |
| 41 class DocumentParser : public RefCounted<DocumentParser> { | 41 class DocumentParser : public RefCounted<DocumentParser> { |
| 42 public: | 42 public: |
| 43 virtual ~DocumentParser(); | 43 virtual ~DocumentParser(); |
| 44 | 44 |
| 45 virtual void parse(mojo::ScopedDataPipeConsumerHandle, | 45 virtual void parse(mojo::ScopedDataPipeConsumerHandle, |
| 46 const base::Closure& completionCallback) = 0; | 46 const base::Closure& completionCallback) = 0; |
| 47 | 47 |
| 48 virtual TextPosition textPosition() const = 0; | 48 virtual TextPosition textPosition() const = 0; |
| 49 virtual void executeScriptsWaitingForResources() = 0; | 49 virtual void resumeAfterWaitingForImports() = 0; |
| 50 virtual bool isWaitingForScripts() const = 0; | 50 virtual bool isWaitingForScripts() const = 0; |
| 51 virtual bool isExecutingScript() const = 0; | 51 virtual bool isExecutingScript() const = 0; |
| 52 | 52 |
| 53 bool isParsing() const { return m_state == ParsingState; } | 53 bool isParsing() const { return m_state == ParsingState; } |
| 54 | 54 |
| 55 // stopParsing() is used when a load is canceled/stopped. | 55 // stopParsing() is used when a load is canceled/stopped. |
| 56 // stopParsing() is currently different from detach(), but shouldn't be. | 56 // stopParsing() is currently different from detach(), but shouldn't be. |
| 57 // It should NOT be ok to call any methods on DocumentParser after either | 57 // It should NOT be ok to call any methods on DocumentParser after either |
| 58 // detach() or stopParsing() but right now only detach() will ASSERT. | 58 // detach() or stopParsing() but right now only detach() will ASSERT. |
| 59 virtual void stopParsing(); | 59 virtual void stopParsing(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 88 ParserState m_state; | 88 ParserState m_state; |
| 89 | 89 |
| 90 // Every DocumentParser needs a pointer back to the document. | 90 // Every DocumentParser needs a pointer back to the document. |
| 91 // m_document will be 0 after the parser is stopped. | 91 // m_document will be 0 after the parser is stopped. |
| 92 Document* m_document; | 92 Document* m_document; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } // namespace blink | 95 } // namespace blink |
| 96 | 96 |
| 97 #endif // SKY_ENGINE_CORE_DOM_DOCUMENTPARSER_H_ | 97 #endif // SKY_ENGINE_CORE_DOM_DOCUMENTPARSER_H_ |
| OLD | NEW |