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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 | 50 |
51 // | 51 // |
52 // Owning imported Document lifetime. It also implements ResourceClient through
ResourceOwner | 52 // Owning imported Document lifetime. It also implements ResourceClient through
ResourceOwner |
53 // to feed fetched bytes to the DocumentWriter of the imported document. | 53 // to feed fetched bytes to the DocumentWriter of the imported document. |
54 // HTMLImportLoader is owned by HTMLImportsController. | 54 // HTMLImportLoader is owned by HTMLImportsController. |
55 // | 55 // |
56 // | 56 // |
57 class HTMLImportLoader final : public NoBaseWillBeGarbageCollectedFinalized<HTML
ImportLoader>, public ResourceOwner<RawResource>, public DocumentParserClient { | 57 class HTMLImportLoader final : public NoBaseWillBeGarbageCollectedFinalized<HTML
ImportLoader>, public ResourceOwner<RawResource>, public DocumentParserClient { |
58 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLImportLoader); | 58 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLImportLoader); |
| 59 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(HTMLImportLoader); |
59 public: | 60 public: |
60 enum State { | 61 enum State { |
61 StateLoading, | 62 StateLoading, |
62 StateWritten, | 63 StateWritten, |
63 StateParsed, | 64 StateParsed, |
64 StateLoaded, | 65 StateLoaded, |
65 StateError | 66 StateError |
66 }; | 67 }; |
67 | 68 |
68 static PassOwnPtrWillBeRawPtr<HTMLImportLoader> create(HTMLImportsController
* controller) | 69 static PassOwnPtrWillBeRawPtr<HTMLImportLoader> create(HTMLImportsController
* controller) |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild>> m_imports; | 126 WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild>> m_imports; |
126 State m_state; | 127 State m_state; |
127 RefPtrWillBeMember<Document> m_document; | 128 RefPtrWillBeMember<Document> m_document; |
128 RefPtrWillBeMember<DocumentWriter> m_writer; | 129 RefPtrWillBeMember<DocumentWriter> m_writer; |
129 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue; | 130 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue; |
130 }; | 131 }; |
131 | 132 |
132 } // namespace blink | 133 } // namespace blink |
133 | 134 |
134 #endif // HTMLImportLoader_h | 135 #endif // HTMLImportLoader_h |
OLD | NEW |