| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 // | 45 // |
| 46 // An import tree node subclas to encapsulate imported document | 46 // An import tree node subclas to encapsulate imported document |
| 47 // lifecycle. This class is owned by LinkStyle. The actual loading | 47 // lifecycle. This class is owned by LinkStyle. The actual loading |
| 48 // is done by HTMLImportLoader, which can be shared among multiple | 48 // is done by HTMLImportLoader, which can be shared among multiple |
| 49 // HTMLImportChild of same link URL. | 49 // HTMLImportChild of same link URL. |
| 50 // | 50 // |
| 51 // HTMLImportChild implements ResourceClient through HTMLImportResourceOwner | 51 // HTMLImportChild implements ResourceClient through HTMLImportResourceOwner |
| 52 // so that it can speculatively request linked resources while it is unblocked. | 52 // so that it can speculatively request linked resources while it is unblocked. |
| 53 // | 53 // |
| 54 class HTMLImportChild : public HTMLImport, public HTMLImportLoaderClient, public
HTMLImportResourceOwner { | 54 class HTMLImportChild FINAL : public HTMLImport, public HTMLImportLoaderClient,
public HTMLImportResourceOwner { |
| 55 public: | 55 public: |
| 56 HTMLImportChild(const KURL&, bool createdByParser); | 56 HTMLImportChild(const KURL&, bool createdByParser); |
| 57 virtual ~HTMLImportChild(); | 57 virtual ~HTMLImportChild(); |
| 58 | 58 |
| 59 Document* importedDocument() const; | 59 Document* importedDocument() const; |
| 60 const KURL& url() const { return m_url; } | 60 const KURL& url() const { return m_url; } |
| 61 | 61 |
| 62 void wasAlreadyLoadedAs(HTMLImportChild* found); | 62 void wasAlreadyLoadedAs(HTMLImportChild* found); |
| 63 void startLoading(const ResourcePtr<RawResource>&); | 63 void startLoading(const ResourcePtr<RawResource>&); |
| 64 void importDestroyed(); | 64 void importDestroyed(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 91 | 91 |
| 92 KURL m_url; | 92 KURL m_url; |
| 93 RefPtr<HTMLImportLoader> m_loader; | 93 RefPtr<HTMLImportLoader> m_loader; |
| 94 Vector<HTMLImportChildClient*> m_clients; | 94 Vector<HTMLImportChildClient*> m_clients; |
| 95 bool m_traversingClients; | 95 bool m_traversingClients; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace WebCore | 98 } // namespace WebCore |
| 99 | 99 |
| 100 #endif // HTMLImportChild_h | 100 #endif // HTMLImportChild_h |
| OLD | NEW |