| 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/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class Document; | 42 class Document; |
| 43 class HTMLImportChild; | 43 class HTMLImportChild; |
| 44 | 44 |
| 45 // | 45 // |
| 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; | 49 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
| 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 virtual ~LinkImport(); |
| 57 | 57 |
| 58 // LinkResource | 58 // LinkResource |
| 59 virtual void process() OVERRIDE; | 59 virtual void process() override; |
| 60 virtual Type type() const OVERRIDE { return Import; } | 60 virtual Type type() const override { return Import; } |
| 61 virtual bool hasLoaded() const OVERRIDE; | 61 virtual bool hasLoaded() const override; |
| 62 virtual void trace(Visitor*) OVERRIDE; | 62 virtual void trace(Visitor*) override; |
| 63 virtual void ownerInserted() OVERRIDE; | 63 virtual void ownerInserted() override; |
| 64 | 64 |
| 65 // HTMLImportChildClient | 65 // HTMLImportChildClient |
| 66 virtual void didFinish() OVERRIDE; | 66 virtual void didFinish() override; |
| 67 #if !ENABLE(OILPAN) | 67 #if !ENABLE(OILPAN) |
| 68 virtual void importChildWasDestroyed(HTMLImportChild*) OVERRIDE; | 68 virtual void importChildWasDestroyed(HTMLImportChild*) override; |
| 69 #endif | 69 #endif |
| 70 virtual bool isSync() const OVERRIDE; | 70 virtual bool isSync() const override; |
| 71 virtual HTMLLinkElement* link() OVERRIDE; | 71 virtual HTMLLinkElement* link() override; |
| 72 | 72 |
| 73 Document* importedDocument() const; | 73 Document* importedDocument() const; |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 RawPtrWillBeMember<HTMLImportChild> m_child; | 76 RawPtrWillBeMember<HTMLImportChild> m_child; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| 80 | 80 |
| 81 #endif // LinkImport_h | 81 #endif // LinkImport_h |
| OLD | NEW |