| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // A LinkResource subclasss used for @rel=import. | 46 // A LinkResource subclasss used for @rel=import. |
| 47 // | 47 // |
| 48 class LinkImport final : public LinkResource, public HTMLImportChildClient { | 48 class LinkImport final : public LinkResource, public HTMLImportChildClient { |
| 49 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(LinkImport); | 49 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(LinkImport); |
| 50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LinkImport); | 50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LinkImport); |
| 51 public: | 51 public: |
| 52 | 52 |
| 53 static PassOwnPtrWillBeRawPtr<LinkImport> create(HTMLLinkElement* owner); | 53 static PassOwnPtrWillBeRawPtr<LinkImport> create(HTMLLinkElement* owner); |
| 54 | 54 |
| 55 explicit LinkImport(HTMLLinkElement* owner); | 55 explicit LinkImport(HTMLLinkElement* owner); |
| 56 virtual ~LinkImport(); | 56 ~LinkImport() override; |
| 57 | 57 |
| 58 // LinkResource | 58 // LinkResource |
| 59 virtual void process() override; | 59 void process() override; |
| 60 virtual Type type() const override { return Import; } | 60 Type type() const override { return Import; } |
| 61 virtual bool hasLoaded() const override; | 61 bool hasLoaded() const override; |
| 62 DECLARE_VIRTUAL_TRACE(); | 62 DECLARE_VIRTUAL_TRACE(); |
| 63 virtual void ownerInserted() override; | 63 void ownerInserted() override; |
| 64 | 64 |
| 65 // HTMLImportChildClient | 65 // HTMLImportChildClient |
| 66 virtual void didFinish() override; | 66 void didFinish() override; |
| 67 virtual void importChildWasDisposed(HTMLImportChild*) override; | 67 void importChildWasDisposed(HTMLImportChild*) override; |
| 68 virtual bool isSync() const override; | 68 bool isSync() const override; |
| 69 virtual HTMLLinkElement* link() override; | 69 HTMLLinkElement* link() override; |
| 70 | 70 |
| 71 Document* importedDocument() const; | 71 Document* importedDocument() const; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 RawPtrWillBeMember<HTMLImportChild> m_child; | 74 RawPtrWillBeMember<HTMLImportChild> m_child; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| 78 | 78 |
| 79 #endif // LinkImport_h | 79 #endif // LinkImport_h |
| OLD | NEW |