Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef HTMLImportChild_h | 31 #ifndef HTMLImportChild_h |
| 32 #define HTMLImportChild_h | 32 #define HTMLImportChild_h |
| 33 | 33 |
| 34 #include "core/fetch/RawResource.h" | 34 #include "core/fetch/RawResource.h" |
| 35 #include "core/fetch/ResourceOwner.h" | 35 #include "core/fetch/ResourceOwner.h" |
| 36 #include "core/html/imports/HTMLImport.h" | 36 #include "core/html/imports/HTMLImport.h" |
| 37 #include "heap/Handle.h" | |
| 37 #include "platform/weborigin/KURL.h" | 38 #include "platform/weborigin/KURL.h" |
| 38 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
| 39 | 40 |
| 40 namespace WebCore { | 41 namespace WebCore { |
| 41 | 42 |
| 42 class CustomElementMicrotaskImportStep; | 43 class CustomElementMicrotaskImportStep; |
| 43 class HTMLImportLoader; | 44 class HTMLImportLoader; |
| 44 class HTMLImportChildClient; | 45 class HTMLImportChildClient; |
| 45 class HTMLLinkElement; | 46 class HTMLLinkElement; |
| 46 | 47 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 // HTMLImportChild owns the resource so that the contents of prefetched Reso urce doesn't go away. | 90 // HTMLImportChild owns the resource so that the contents of prefetched Reso urce doesn't go away. |
| 90 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRIDE { } | 91 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRIDE { } |
| 91 virtual void dataReceived(Resource*, const char*, int) OVERRIDE { } | 92 virtual void dataReceived(Resource*, const char*, int) OVERRIDE { } |
| 92 virtual void notifyFinished(Resource*) OVERRIDE { } | 93 virtual void notifyFinished(Resource*) OVERRIDE { } |
| 93 | 94 |
| 94 void didFinish(); | 95 void didFinish(); |
| 95 void createLoader(); | 96 void createLoader(); |
| 96 void shareLoader(HTMLImportChild*); | 97 void shareLoader(HTMLImportChild*); |
| 97 void ensureLoader(); | 98 void ensureLoader(); |
| 98 | 99 |
| 100 #if ENABLE(OILPAN) | |
| 101 Persistent<Document> m_master; | |
|
haraken
2014/04/24 04:18:43
Won't this cause a cycle? You are replacing a RawP
Mads Ager (chromium)
2014/04/24 10:57:36
This will be no worse than it was before. The HTML
| |
| 102 #else | |
| 99 Document& m_master; | 103 Document& m_master; |
| 104 #endif | |
| 100 KURL m_url; | 105 KURL m_url; |
| 101 CustomElementMicrotaskImportStep* m_customElementMicrotaskStep; | 106 CustomElementMicrotaskImportStep* m_customElementMicrotaskStep; |
| 102 HTMLImportLoader* m_loader; | 107 HTMLImportLoader* m_loader; |
| 103 HTMLImportChildClient* m_client; | 108 HTMLImportChildClient* m_client; |
| 104 }; | 109 }; |
| 105 | 110 |
| 106 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) | 111 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) |
| 107 { | 112 { |
| 108 ASSERT(!import || import->isChild()); | 113 ASSERT(!import || import->isChild()); |
| 109 return static_cast<HTMLImportChild*>(import); | 114 return static_cast<HTMLImportChild*>(import); |
| 110 } | 115 } |
| 111 | 116 |
| 112 } // namespace WebCore | 117 } // namespace WebCore |
| 113 | 118 |
| 114 #endif // HTMLImportChild_h | 119 #endif // HTMLImportChild_h |
| OLD | NEW |