| 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 29 matching lines...) Expand all Loading... |
| 40 } | 40 } |
| 41 | 41 |
| 42 DocumentParser::~DocumentParser() | 42 DocumentParser::~DocumentParser() |
| 43 { | 43 { |
| 44 // Document is expected to call detach() before releasing its ref. | 44 // Document is expected to call detach() before releasing its ref. |
| 45 // This ASSERT is slightly awkward for parsers with a fragment case | 45 // This ASSERT is slightly awkward for parsers with a fragment case |
| 46 // as there is no Document to release the ref. | 46 // as there is no Document to release the ref. |
| 47 ASSERT(!m_document); | 47 ASSERT(!m_document); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void DocumentParser::setDecoder(PassRefPtr<TextResourceDecoder>) | 50 void DocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder>) |
| 51 { | 51 { |
| 52 ASSERT_NOT_REACHED(); | 52 ASSERT_NOT_REACHED(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 PassRefPtr<TextResourceDecoder> DocumentParser::decoder() | 55 TextResourceDecoder* DocumentParser::decoder() |
| 56 { | 56 { |
| 57 return 0; | 57 return 0; |
| 58 } | 58 } |
| 59 | 59 |
| 60 void DocumentParser::startParsing() | 60 void DocumentParser::startParsing() |
| 61 { | 61 { |
| 62 m_state = ParsingState; | 62 m_state = ParsingState; |
| 63 } | 63 } |
| 64 | 64 |
| 65 void DocumentParser::prepareToStopParsing() | 65 void DocumentParser::prepareToStopParsing() |
| (...skipping 16 matching lines...) Expand all Loading... |
| 82 void DocumentParser::suspendScheduledTasks() | 82 void DocumentParser::suspendScheduledTasks() |
| 83 { | 83 { |
| 84 } | 84 } |
| 85 | 85 |
| 86 void DocumentParser::resumeScheduledTasks() | 86 void DocumentParser::resumeScheduledTasks() |
| 87 { | 87 { |
| 88 } | 88 } |
| 89 | 89 |
| 90 }; | 90 }; |
| 91 | 91 |
| OLD | NEW |