| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 void watchForLoad(ScriptResourceClient*); | 67 void watchForLoad(ScriptResourceClient*); |
| 68 void stopWatchingForLoad(ScriptResourceClient*); | 68 void stopWatchingForLoad(ScriptResourceClient*); |
| 69 | 69 |
| 70 Element* element() const { return m_element.get(); } | 70 Element* element() const { return m_element.get(); } |
| 71 void setElement(Element*); | 71 void setElement(Element*); |
| 72 PassRefPtrWillBeRawPtr<Element> releaseElementAndClear(); | 72 PassRefPtrWillBeRawPtr<Element> releaseElementAndClear(); |
| 73 | 73 |
| 74 void setScriptResource(ScriptResource*); | 74 void setScriptResource(ScriptResource*); |
| 75 | 75 |
| 76 virtual void notifyFinished(Resource*); | 76 void notifyFinished(Resource*) override; |
| 77 virtual void notifyAppendData(ScriptResource*); | 77 String debugName() const override { return "PendingScript"; } |
| 78 void notifyAppendData(ScriptResource*) override; |
| 78 | 79 |
| 79 DECLARE_TRACE(); | 80 DECLARE_TRACE(); |
| 80 | 81 |
| 81 ScriptSourceCode getSource(const KURL& documentURL, bool& errorOccurred) con
st; | 82 ScriptSourceCode getSource(const KURL& documentURL, bool& errorOccurred) con
st; |
| 82 | 83 |
| 83 void setStreamer(PassRefPtrWillBeRawPtr<ScriptStreamer>); | 84 void setStreamer(PassRefPtrWillBeRawPtr<ScriptStreamer>); |
| 84 | 85 |
| 85 bool isReady() const; | 86 bool isReady() const; |
| 86 | 87 |
| 87 private: | 88 private: |
| 88 bool m_watchingForLoad; | 89 bool m_watchingForLoad; |
| 89 RefPtrWillBeMember<Element> m_element; | 90 RefPtrWillBeMember<Element> m_element; |
| 90 TextPosition m_startingPosition; // Only used for inline script tags. | 91 TextPosition m_startingPosition; // Only used for inline script tags. |
| 91 bool m_integrityFailure; | 92 bool m_integrityFailure; |
| 92 | 93 |
| 93 RefPtrWillBeMember<ScriptStreamer> m_streamer; | 94 RefPtrWillBeMember<ScriptStreamer> m_streamer; |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace blink | 97 } // namespace blink |
| 97 | 98 |
| 98 #endif // PendingScript_h | 99 #endif // PendingScript_h |
| OLD | NEW |