| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 public: | 53 public: |
| 54 static void provideTo(Document*); | 54 static void provideTo(Document*); |
| 55 | 55 |
| 56 explicit HTMLImportsController(Document*); | 56 explicit HTMLImportsController(Document*); |
| 57 virtual ~HTMLImportsController(); | 57 virtual ~HTMLImportsController(); |
| 58 | 58 |
| 59 // HTMLImport | 59 // HTMLImport |
| 60 virtual HTMLImportRoot* root() OVERRIDE; | 60 virtual HTMLImportRoot* root() OVERRIDE; |
| 61 virtual Document* document() const OVERRIDE; | 61 virtual Document* document() const OVERRIDE; |
| 62 virtual void wasDetachedFromDocument() OVERRIDE; | 62 virtual void wasDetachedFromDocument() OVERRIDE; |
| 63 virtual void didFinishParsing() OVERRIDE; | |
| 64 virtual bool isDone() const OVERRIDE; | 63 virtual bool isDone() const OVERRIDE; |
| 65 virtual bool hasLoader() const OVERRIDE; | 64 virtual bool hasLoader() const OVERRIDE; |
| 66 | 65 |
| 67 // HTMLImportRoot | 66 // HTMLImportRoot |
| 68 virtual void blockerGone() OVERRIDE; | 67 virtual void scheduleRecalcState() OVERRIDE; |
| 69 virtual HTMLImportsController* toController() OVERRIDE { return this; } | 68 virtual HTMLImportsController* toController() OVERRIDE { return this; } |
| 70 virtual HTMLImportChild* findLinkFor(const KURL&, HTMLImport* excluding = 0)
const OVERRIDE; | 69 virtual HTMLImportChild* findLinkFor(const KURL&, HTMLImport* excluding = 0)
const OVERRIDE; |
| 71 | 70 |
| 72 HTMLImportChild* load(HTMLImport* parent, HTMLImportChildClient*, FetchReque
st); | 71 HTMLImportChild* load(HTMLImport* parent, HTMLImportChildClient*, FetchReque
st); |
| 73 void showSecurityErrorMessage(const String&); | 72 void showSecurityErrorMessage(const String&); |
| 74 | 73 |
| 75 SecurityOrigin* securityOrigin() const; | 74 SecurityOrigin* securityOrigin() const; |
| 76 ResourceFetcher* fetcher() const; | 75 ResourceFetcher* fetcher() const; |
| 77 | 76 |
| 78 void scheduleUnblock(); | 77 void recalcTimerFired(Timer<HTMLImportsController>*); |
| 79 void unblockTimerFired(Timer<HTMLImportsController>*); | |
| 80 | 78 |
| 81 private: | 79 private: |
| 82 HTMLImportChild* createChild(const KURL&, HTMLImport* parent, HTMLImportChil
dClient*); | 80 HTMLImportChild* createChild(const KURL&, HTMLImport* parent, HTMLImportChil
dClient*); |
| 83 void clear(); | 81 void clear(); |
| 84 | 82 |
| 85 Document* m_master; | 83 Document* m_master; |
| 86 Timer<HTMLImportsController> m_unblockTimer; | 84 Timer<HTMLImportsController> m_recalcTimer; |
| 87 | 85 |
| 88 // List of import which has been loaded or being loaded. | 86 // List of import which has been loaded or being loaded. |
| 89 typedef Vector<OwnPtr<HTMLImportChild> > ImportList; | 87 typedef Vector<OwnPtr<HTMLImportChild> > ImportList; |
| 90 ImportList m_imports; | 88 ImportList m_imports; |
| 91 }; | 89 }; |
| 92 | 90 |
| 93 } // namespace WebCore | 91 } // namespace WebCore |
| 94 | 92 |
| 95 #endif // HTMLImportsController_h | 93 #endif // HTMLImportsController_h |
| OLD | NEW |