| 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 27 matching lines...) Expand all Loading... |
| 38 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
| 39 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class CustomElementSyncMicrotaskQueue; | 43 class CustomElementSyncMicrotaskQueue; |
| 44 class Document; | 44 class Document; |
| 45 class HTMLImportChild; | 45 class HTMLImportChild; |
| 46 class HTMLImportsController; | 46 class HTMLImportsController; |
| 47 | 47 |
| 48 class HTMLImportLoader final : public DummyBase<HTMLImportLoader>, | 48 class HTMLImportLoader final : public MojoFetcher::Client { |
| 49 public MojoFetcher::Client { | |
| 50 public: | 49 public: |
| 51 enum State { | 50 enum State { |
| 52 StateLoading, | 51 StateLoading, |
| 53 StateWritten, | 52 StateWritten, |
| 54 StateParsed, | 53 StateParsed, |
| 55 StateLoaded, | 54 StateLoaded, |
| 56 StateError | 55 StateError |
| 57 }; | 56 }; |
| 58 | 57 |
| 59 static PassOwnPtr<HTMLImportLoader> create(HTMLImportsController* controller
) | 58 static PassOwnPtr<HTMLImportLoader> create(HTMLImportsController* controller
) |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 State m_state; | 114 State m_state; |
| 116 RefPtr<Document> m_document; | 115 RefPtr<Document> m_document; |
| 117 RefPtr<CustomElementSyncMicrotaskQueue> m_microtaskQueue; | 116 RefPtr<CustomElementSyncMicrotaskQueue> m_microtaskQueue; |
| 118 | 117 |
| 119 OwnPtr<MojoFetcher> m_fetcher; | 118 OwnPtr<MojoFetcher> m_fetcher; |
| 120 }; | 119 }; |
| 121 | 120 |
| 122 } // namespace blink | 121 } // namespace blink |
| 123 | 122 |
| 124 #endif // HTMLImportLoader_h | 123 #endif // HTMLImportLoader_h |
| OLD | NEW |