| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 DocumentParser::~DocumentParser() {} | 43 DocumentParser::~DocumentParser() {} |
| 44 | 44 |
| 45 DEFINE_TRACE(DocumentParser) { | 45 DEFINE_TRACE(DocumentParser) { |
| 46 visitor->trace(m_document); | 46 visitor->trace(m_document); |
| 47 visitor->trace(m_clients); | 47 visitor->trace(m_clients); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void DocumentParser::setDecoder(std::unique_ptr<TextResourceDecoder>) { | 50 void DocumentParser::setDecoder(std::unique_ptr<TextResourceDecoder>) { |
| 51 ASSERT_NOT_REACHED(); | 51 NOTREACHED(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 TextResourceDecoder* DocumentParser::decoder() { | 54 TextResourceDecoder* DocumentParser::decoder() { |
| 55 return nullptr; | 55 return nullptr; |
| 56 } | 56 } |
| 57 | 57 |
| 58 void DocumentParser::prepareToStopParsing() { | 58 void DocumentParser::prepareToStopParsing() { |
| 59 DCHECK_EQ(m_state, ParsingState); | 59 DCHECK_EQ(m_state, ParsingState); |
| 60 m_state = StoppingState; | 60 m_state = StoppingState; |
| 61 } | 61 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 86 | 86 |
| 87 void DocumentParser::addClient(DocumentParserClient* client) { | 87 void DocumentParser::addClient(DocumentParserClient* client) { |
| 88 m_clients.add(client); | 88 m_clients.add(client); |
| 89 } | 89 } |
| 90 | 90 |
| 91 void DocumentParser::removeClient(DocumentParserClient* client) { | 91 void DocumentParser::removeClient(DocumentParserClient* client) { |
| 92 m_clients.remove(client); | 92 m_clients.remove(client); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace blink | 95 } // namespace blink |
| OLD | NEW |