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 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRIDE {
} | 97 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRIDE {
} |
98 virtual void dataReceived(Resource*, const char*, int) OVERRIDE { } | 98 virtual void dataReceived(Resource*, const char*, int) OVERRIDE { } |
99 virtual void notifyFinished(Resource*) OVERRIDE { } | 99 virtual void notifyFinished(Resource*) OVERRIDE { } |
100 | 100 |
101 void didFinish(); | 101 void didFinish(); |
102 void createLoader(); | 102 void createLoader(); |
103 void shareLoader(HTMLImportChild*); | 103 void shareLoader(HTMLImportChild*); |
104 void ensureLoader(); | 104 void ensureLoader(); |
105 void createCustomElementMicrotaskStepIfNeeded(); | 105 void createCustomElementMicrotaskStepIfNeeded(); |
106 | 106 |
| 107 bool hasMicrotaskStep() const { return m_customElementMicrotaskStep; } |
| 108 bool isWaitingCustomElementMicrotaskSteps() const; |
| 109 |
107 #if ENABLE(OILPAN) | 110 #if ENABLE(OILPAN) |
108 Persistent<Document> m_master; | 111 Persistent<Document> m_master; |
109 #else | 112 #else |
110 Document& m_master; | 113 Document& m_master; |
111 #endif | 114 #endif |
112 KURL m_url; | 115 KURL m_url; |
113 WeakPtrFactory<HTMLImportChild> m_weakFactory; | 116 WeakPtrFactory<HTMLImportChild> m_weakFactory; |
114 WeakPtr<CustomElementMicrotaskImportStep> m_customElementMicrotaskStep; | 117 WeakPtr<CustomElementMicrotaskImportStep> m_customElementMicrotaskStep; |
115 HTMLImportLoader* m_loader; | 118 HTMLImportLoader* m_loader; |
116 HTMLImportChildClient* m_client; | 119 HTMLImportChildClient* m_client; |
117 }; | 120 }; |
118 | 121 |
119 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) | 122 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) |
120 { | 123 { |
121 ASSERT(!import || import->isChild()); | 124 ASSERT(!import || import->isChild()); |
122 return static_cast<HTMLImportChild*>(import); | 125 return static_cast<HTMLImportChild*>(import); |
123 } | 126 } |
124 | 127 |
125 } // namespace WebCore | 128 } // namespace WebCore |
126 | 129 |
127 #endif // HTMLImportChild_h | 130 #endif // HTMLImportChild_h |
OLD | NEW |