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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 class HTMLImportsController; | 48 class HTMLImportsController; |
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 public: | 59 public: |
59 enum State { | 60 enum State { |
60 StateLoading, | 61 StateLoading, |
61 StateWritten, | 62 StateWritten, |
62 StateParsed, | 63 StateParsed, |
63 StateLoaded, | 64 StateLoaded, |
64 StateError | 65 StateError |
65 }; | 66 }; |
66 | 67 |
67 static PassOwnPtrWillBeRawPtr<HTMLImportLoader> create(HTMLImportsController
* controller) | 68 static PassOwnPtrWillBeRawPtr<HTMLImportLoader> create(HTMLImportsController
* controller) |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild> > m_imports; | 128 WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild> > m_imports; |
128 State m_state; | 129 State m_state; |
129 RefPtrWillBeMember<Document> m_document; | 130 RefPtrWillBeMember<Document> m_document; |
130 RefPtrWillBeMember<DocumentWriter> m_writer; | 131 RefPtrWillBeMember<DocumentWriter> m_writer; |
131 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue; | 132 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue; |
132 }; | 133 }; |
133 | 134 |
134 } // namespace blink | 135 } // namespace blink |
135 | 136 |
136 #endif // HTMLImportLoader_h | 137 #endif // HTMLImportLoader_h |
OLD | NEW |