| 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 // lifecycle. This class is owned by HTMLImportsController. The actual loading | 49 // lifecycle. This class is owned by HTMLImportsController. The actual loading |
| 50 // is done by HTMLImportLoader, which can be shared among multiple | 50 // is done by HTMLImportLoader, which can be shared among multiple |
| 51 // HTMLImportChild of same link URL. | 51 // HTMLImportChild of same link URL. |
| 52 // | 52 // |
| 53 class HTMLImportChild FINAL : public HTMLImport { | 53 class HTMLImportChild FINAL : public HTMLImport { |
| 54 public: | 54 public: |
| 55 HTMLImportChild(const KURL&, HTMLImportLoader*, SyncMode); | 55 HTMLImportChild(const KURL&, HTMLImportLoader*, SyncMode); |
| 56 virtual ~HTMLImportChild(); | 56 virtual ~HTMLImportChild(); |
| 57 | 57 |
| 58 HTMLLinkElement* link() const; | 58 HTMLLinkElement* link() const; |
| 59 Document* importedDocument() const; | |
| 60 const KURL& url() const { return m_url; } | 59 const KURL& url() const { return m_url; } |
| 61 | 60 |
| 62 void didShareLoader(); | 61 void didShareLoader(); |
| 63 void didStartLoading(); | 62 void didStartLoading(); |
| 64 void importDestroyed(); | 63 void importDestroyed(); |
| 65 WeakPtr<HTMLImportChild> weakPtr() { return m_weakFactory.createWeakPtr(); } | 64 WeakPtr<HTMLImportChild> weakPtr() { return m_weakFactory.createWeakPtr(); } |
| 66 | 65 |
| 67 // HTMLImport | 66 // HTMLImport |
| 68 virtual Document* document() const OVERRIDE; | 67 virtual Document* document() const OVERRIDE; |
| 69 virtual bool isDone() const OVERRIDE; | 68 virtual bool isDone() const OVERRIDE; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 99 | 98 |
| 100 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) | 99 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) |
| 101 { | 100 { |
| 102 ASSERT(!import || !import->isRoot()); | 101 ASSERT(!import || !import->isRoot()); |
| 103 return static_cast<HTMLImportChild*>(import); | 102 return static_cast<HTMLImportChild*>(import); |
| 104 } | 103 } |
| 105 | 104 |
| 106 } // namespace WebCore | 105 } // namespace WebCore |
| 107 | 106 |
| 108 #endif // HTMLImportChild_h | 107 #endif // HTMLImportChild_h |
| OLD | NEW |