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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 DECLARE_VIRTUAL_TRACE(); | 98 DECLARE_VIRTUAL_TRACE(); |
99 | 99 |
100 private: | 100 private: |
101 HTMLImportLoader(HTMLImportsController*); | 101 HTMLImportLoader(HTMLImportsController*); |
102 | 102 |
103 // RawResourceClient | 103 // RawResourceClient |
104 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebData
ConsumerHandle>) override; | 104 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebData
ConsumerHandle>) override; |
105 void dataReceived(Resource*, const char* data, unsigned length) override; | 105 void dataReceived(Resource*, const char* data, unsigned length) override; |
106 void notifyFinished(Resource*) override; | 106 void notifyFinished(Resource*) override; |
| 107 String debugName() const override { return "HTMLImportLoader"; } |
107 | 108 |
108 // DocumentParserClient | 109 // DocumentParserClient |
109 | 110 |
110 // Called after document parse is complete after DOMContentLoaded was dispat
ched. | 111 // Called after document parse is complete after DOMContentLoaded was dispat
ched. |
111 void notifyParserStopped() override; | 112 void notifyParserStopped() override; |
112 | 113 |
113 State startWritingAndParsing(const ResourceResponse&); | 114 State startWritingAndParsing(const ResourceResponse&); |
114 State finishWriting(); | 115 State finishWriting(); |
115 State finishParsing(); | 116 State finishParsing(); |
116 State finishLoading(); | 117 State finishLoading(); |
117 | 118 |
118 void setState(State); | 119 void setState(State); |
119 void didFinishLoading(); | 120 void didFinishLoading(); |
120 bool hasPendingResources() const; | 121 bool hasPendingResources() const; |
121 #if !ENABLE(OILPAN) | 122 #if !ENABLE(OILPAN) |
122 void clear(); | 123 void clear(); |
123 #endif | 124 #endif |
124 | 125 |
125 RawPtrWillBeMember<HTMLImportsController> m_controller; | 126 RawPtrWillBeMember<HTMLImportsController> m_controller; |
126 WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild>> m_imports; | 127 WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild>> m_imports; |
127 State m_state; | 128 State m_state; |
128 RefPtrWillBeMember<Document> m_document; | 129 RefPtrWillBeMember<Document> m_document; |
129 RefPtrWillBeMember<DocumentWriter> m_writer; | 130 RefPtrWillBeMember<DocumentWriter> m_writer; |
130 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue; | 131 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue; |
131 }; | 132 }; |
132 | 133 |
133 } // namespace blink | 134 } // namespace blink |
134 | 135 |
135 #endif // HTMLImportLoader_h | 136 #endif // HTMLImportLoader_h |
OLD | NEW |