| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 explicit HTMLImportsController(Document&); | 59 explicit HTMLImportsController(Document&); |
| 60 virtual ~HTMLImportsController(); | 60 virtual ~HTMLImportsController(); |
| 61 | 61 |
| 62 HTMLImportTreeRoot* root() const { return m_root.get(); } | 62 HTMLImportTreeRoot* root() const { return m_root.get(); } |
| 63 | 63 |
| 64 bool shouldBlockScriptExecution(const Document&) const; | 64 bool shouldBlockScriptExecution(const Document&) const; |
| 65 void wasDetachedFrom(const Document&); | 65 void wasDetachedFrom(const Document&); |
| 66 | 66 |
| 67 HTMLImportChild* load(HTMLImport* parent, HTMLImportChildClient*, FetchReque
st); | 67 HTMLImportChild* load(HTMLImport* parent, HTMLImportChildClient*, FetchReque
st); |
| 68 void showSecurityErrorMessage(const String&); | |
| 69 | 68 |
| 70 Document* master() const; | 69 Document* master() const; |
| 71 | 70 |
| 72 HTMLImportLoader* createLoader(); | 71 HTMLImportLoader* createLoader(); |
| 73 | 72 |
| 74 size_t loaderCount() const { return m_loaders.size(); } | 73 size_t loaderCount() const { return m_loaders.size(); } |
| 75 HTMLImportLoader* loaderAt(size_t i) const { return m_loaders[i].get(); } | 74 HTMLImportLoader* loaderAt(size_t i) const { return m_loaders[i].get(); } |
| 76 HTMLImportLoader* loaderFor(const Document&) const; | 75 HTMLImportLoader* loaderFor(const Document&) const; |
| 77 | 76 |
| 78 private: | 77 private: |
| 79 HTMLImportChild* createChild(const KURL&, HTMLImportLoader*, HTMLImport* par
ent, HTMLImportChildClient*); | 78 HTMLImportChild* createChild(const KURL&, HTMLImportLoader*, HTMLImport* par
ent, HTMLImportChildClient*); |
| 80 void clear(); | 79 void clear(); |
| 81 | 80 |
| 82 OwnPtr<HTMLImportTreeRoot> m_root; | 81 OwnPtr<HTMLImportTreeRoot> m_root; |
| 83 | 82 |
| 84 typedef Vector<RefPtr<HTMLImportLoader> > LoaderList; | 83 typedef Vector<RefPtr<HTMLImportLoader> > LoaderList; |
| 85 LoaderList m_loaders; | 84 LoaderList m_loaders; |
| 86 }; | 85 }; |
| 87 | 86 |
| 88 } // namespace WebCore | 87 } // namespace WebCore |
| 89 | 88 |
| 90 #endif // HTMLImportsController_h | 89 #endif // HTMLImportsController_h |
| OLD | NEW |