| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 bool isDone() const { return m_state == StateLoaded || m_state == StateError
; } | 78 bool isDone() const { return m_state == StateLoaded || m_state == StateError
; } |
| 79 bool hasError() const { return m_state == StateError; } | 79 bool hasError() const { return m_state == StateError; } |
| 80 bool shouldBlockScriptExecution() const; | 80 bool shouldBlockScriptExecution() const; |
| 81 | 81 |
| 82 void importDestroyed(); | 82 void importDestroyed(); |
| 83 void startLoading(const ResourcePtr<RawResource>&); | 83 void startLoading(const ResourcePtr<RawResource>&); |
| 84 void didFinishParsing(); | 84 void didFinishParsing(); |
| 85 void didRemoveAllPendingStylesheet(); | 85 void didRemoveAllPendingStylesheet(); |
| 86 | 86 |
| 87 PassRefPtr<CustomElementMicrotaskQueue> microtaskQueue() const; | 87 PassRefPtr<CustomElementMicrotaskQueue> microtaskQueue() const; |
| 88 PassRefPtr<CustomElementMicrotaskQueue> ensureMicrotaskQueue(); |
| 88 | 89 |
| 89 private: | 90 private: |
| 90 HTMLImportLoader(HTMLImportsController*); | 91 HTMLImportLoader(HTMLImportsController*); |
| 91 | 92 |
| 92 // RawResourceClient | 93 // RawResourceClient |
| 93 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRIDE; | 94 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRIDE; |
| 94 virtual void dataReceived(Resource*, const char* data, int length) OVERRIDE; | 95 virtual void dataReceived(Resource*, const char* data, int length) OVERRIDE; |
| 95 virtual void notifyFinished(Resource*) OVERRIDE; | 96 virtual void notifyFinished(Resource*) OVERRIDE; |
| 96 | 97 |
| 97 State startWritingAndParsing(const ResourceResponse&); | 98 State startWritingAndParsing(const ResourceResponse&); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 108 Vector<HTMLImportChild*> m_imports; | 109 Vector<HTMLImportChild*> m_imports; |
| 109 State m_state; | 110 State m_state; |
| 110 RefPtr<Document> m_importedDocument; | 111 RefPtr<Document> m_importedDocument; |
| 111 RefPtr<DocumentWriter> m_writer; | 112 RefPtr<DocumentWriter> m_writer; |
| 112 RefPtr<CustomElementMicrotaskQueue> m_microtaskQueue; | 113 RefPtr<CustomElementMicrotaskQueue> m_microtaskQueue; |
| 113 }; | 114 }; |
| 114 | 115 |
| 115 } // namespace WebCore | 116 } // namespace WebCore |
| 116 | 117 |
| 117 #endif // HTMLImportLoader_h | 118 #endif // HTMLImportLoader_h |
| OLD | NEW |