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 // An import tree node subclas to encapsulate imported document | 49 // An import tree node subclas to encapsulate imported document |
50 // lifecycle. This class is owned by LinkStyle. The actual loading | 50 // lifecycle. This class is owned by LinkStyle. The actual loading |
51 // is done by HTMLImportLoader, which can be shared among multiple | 51 // is done by HTMLImportLoader, which can be shared among multiple |
52 // HTMLImportChild of same link URL. | 52 // HTMLImportChild of same link URL. |
53 // | 53 // |
54 // HTMLImportChild implements ResourceClient through ResourceOwner | 54 // HTMLImportChild implements ResourceClient through ResourceOwner |
55 // so that it can speculatively request linked resources while it is unblocked. | 55 // so that it can speculatively request linked resources while it is unblocked. |
56 // | 56 // |
57 class HTMLImportChild FINAL : public HTMLImport, public HTMLImportLoaderClient,
public ResourceOwner<RawResource> { | 57 class HTMLImportChild FINAL : public HTMLImport, public HTMLImportLoaderClient,
public ResourceOwner<RawResource> { |
58 public: | 58 public: |
59 HTMLImportChild(Document&, const KURL&, bool sync); | 59 HTMLImportChild(Document&, const KURL&, SyncMode); |
60 virtual ~HTMLImportChild(); | 60 virtual ~HTMLImportChild(); |
61 | 61 |
62 HTMLLinkElement* link() const; | 62 HTMLLinkElement* link() const; |
63 Document* importedDocument() const; | 63 Document* importedDocument() const; |
64 const KURL& url() const { return m_url; } | 64 const KURL& url() const { return m_url; } |
65 | 65 |
66 void wasAlreadyLoaded(); | 66 void wasAlreadyLoaded(); |
67 void startLoading(const ResourcePtr<RawResource>&); | 67 void startLoading(const ResourcePtr<RawResource>&); |
68 void importDestroyed(); | 68 void importDestroyed(); |
69 | 69 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) | 113 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) |
114 { | 114 { |
115 ASSERT(!import || import->isChild()); | 115 ASSERT(!import || import->isChild()); |
116 return static_cast<HTMLImportChild*>(import); | 116 return static_cast<HTMLImportChild*>(import); |
117 } | 117 } |
118 | 118 |
119 } // namespace WebCore | 119 } // namespace WebCore |
120 | 120 |
121 #endif // HTMLImportChild_h | 121 #endif // HTMLImportChild_h |
OLD | NEW |