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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void wasDetachedFrom(const Document&); | 66 void wasDetachedFrom(const Document&); |
67 | 67 |
68 HTMLImportChild* load(HTMLImport* parent, HTMLImportChildClient*, FetchReque
st); | 68 HTMLImportChild* load(HTMLImport* parent, HTMLImportChildClient*, FetchReque
st); |
69 void showSecurityErrorMessage(const String&); | 69 void showSecurityErrorMessage(const String&); |
70 | 70 |
71 SecurityOrigin* securityOrigin() const; | 71 SecurityOrigin* securityOrigin() const; |
72 ResourceFetcher* fetcher() const; | 72 ResourceFetcher* fetcher() const; |
73 LocalFrame* frame() const; | 73 LocalFrame* frame() const; |
74 Document* master() const { return m_master; } | 74 Document* master() const { return m_master; } |
75 | 75 |
76 | |
77 HTMLImportLoader* createLoader(); | 76 HTMLImportLoader* createLoader(); |
78 | 77 |
79 size_t loaderCount() const { return m_loaders.size(); } | 78 size_t loaderCount() const { return m_loaders.size(); } |
80 HTMLImportLoader* loaderAt(size_t i) const { return m_loaders[i].get(); } | 79 HTMLImportLoader* loaderAt(size_t i) const { return m_loaders[i].get(); } |
81 HTMLImportLoader* loaderFor(const Document&) const; | 80 HTMLImportLoader* loaderFor(const Document&) const; |
82 | 81 |
83 HTMLImportChild* findLinkFor(const KURL&) const; | |
84 | |
85 private: | 82 private: |
86 HTMLImportChild* createChild(const KURL&, HTMLImportLoader*, HTMLImport* par
ent, HTMLImportChildClient*); | 83 HTMLImportChild* createChild(const KURL&, HTMLImportLoader*, HTMLImport* par
ent, HTMLImportChildClient*); |
87 void clear(); | 84 void clear(); |
88 | 85 |
89 Document* m_master; | 86 Document* m_master; |
90 | 87 |
91 OwnPtr<HTMLImportTreeRoot> m_root; | 88 OwnPtr<HTMLImportTreeRoot> m_root; |
92 | 89 |
93 // List of import which has been loaded or being loaded. | |
94 typedef Vector<OwnPtr<HTMLImportChild> > ImportList; | |
95 ImportList m_imports; | |
96 | |
97 typedef Vector<OwnPtr<HTMLImportLoader> > LoaderList; | 90 typedef Vector<OwnPtr<HTMLImportLoader> > LoaderList; |
98 LoaderList m_loaders; | 91 LoaderList m_loaders; |
99 }; | 92 }; |
100 | 93 |
101 } // namespace WebCore | 94 } // namespace WebCore |
102 | 95 |
103 #endif // HTMLImportsController_h | 96 #endif // HTMLImportsController_h |
OLD | NEW |