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 29 matching lines...) Expand all Loading... |
40 class DocumentWriter; | 40 class DocumentWriter; |
41 class HTMLImport; | 41 class HTMLImport; |
42 class HTMLImportLoaderClient; | 42 class HTMLImportLoaderClient; |
43 | 43 |
44 // | 44 // |
45 // Owning imported Document lifetime. It also implements ResourceClient through
HTMLImportResourceOwner | 45 // Owning imported Document lifetime. It also implements ResourceClient through
HTMLImportResourceOwner |
46 // to feed fetched bytes to the DocumentWriter of the imported document. | 46 // to feed fetched bytes to the DocumentWriter of the imported document. |
47 // HTMLImportLoader is owned by and shared between HTMLImportChild. | 47 // HTMLImportLoader is owned by and shared between HTMLImportChild. |
48 // | 48 // |
49 // | 49 // |
50 class HTMLImportLoader : public RefCounted<HTMLImportLoader>, public HTMLImportR
esourceOwner { | 50 class HTMLImportLoader FINAL : public RefCounted<HTMLImportLoader>, public HTMLI
mportResourceOwner { |
51 public: | 51 public: |
52 enum State { | 52 enum State { |
53 StateLoading, | 53 StateLoading, |
54 StateWritten, | 54 StateWritten, |
55 StateError, | 55 StateError, |
56 StateReady | 56 StateReady |
57 }; | 57 }; |
58 | 58 |
59 static PassRefPtr<HTMLImportLoader> create(HTMLImport*, ResourceFetcher*); | 59 static PassRefPtr<HTMLImportLoader> create(HTMLImport*, ResourceFetcher*); |
60 | 60 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 ResourceFetcher* m_fetcher; | 92 ResourceFetcher* m_fetcher; |
93 Vector<HTMLImportLoaderClient*> m_clients; | 93 Vector<HTMLImportLoaderClient*> m_clients; |
94 State m_state; | 94 State m_state; |
95 RefPtr<Document> m_importedDocument; | 95 RefPtr<Document> m_importedDocument; |
96 RefPtr<DocumentWriter> m_writer; | 96 RefPtr<DocumentWriter> m_writer; |
97 }; | 97 }; |
98 | 98 |
99 } // namespace WebCore | 99 } // namespace WebCore |
100 | 100 |
101 #endif // HTMLImportLoader_h | 101 #endif // HTMLImportLoader_h |
OLD | NEW |