| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 ~PendingScript(); | 60 ~PendingScript(); |
| 61 | 61 |
| 62 PendingScript& operator=(const PendingScript&); | 62 PendingScript& operator=(const PendingScript&); |
| 63 | 63 |
| 64 TextPosition startingPosition() const { return m_startingPosition; } | 64 TextPosition startingPosition() const { return m_startingPosition; } |
| 65 void setStartingPosition(const TextPosition& position) { m_startingPosition
= position; } | 65 void setStartingPosition(const TextPosition& position) { m_startingPosition
= position; } |
| 66 | 66 |
| 67 void watchForLoad(ScriptResourceClient*); | 67 void watchForLoad(ScriptResourceClient*); |
| 68 void stopWatchingForLoad(ScriptResourceClient*); | 68 void stopWatchingForLoad(ScriptResourceClient*); |
| 69 | 69 |
| 70 Element* element() const; | 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 void notifyFinished(Resource*) override; | 76 void notifyFinished(Resource*) override; |
| 77 String debugName() const override { return "PendingScript"; } | 77 String debugName() const override { return "PendingScript"; } |
| 78 void notifyAppendData(ScriptResource*) override; | 78 void notifyAppendData(ScriptResource*) override; |
| 79 | 79 |
| 80 DECLARE_TRACE(); | 80 DECLARE_TRACE(); |
| 81 | 81 |
| 82 ScriptSourceCode getSource(const KURL& documentURL, bool& errorOccurred) con
st; | 82 ScriptSourceCode getSource(const KURL& documentURL, bool& errorOccurred) con
st; |
| 83 | 83 |
| 84 void setStreamer(PassRefPtrWillBeRawPtr<ScriptStreamer>); | 84 void setStreamer(PassRefPtrWillBeRawPtr<ScriptStreamer>); |
| 85 | 85 |
| 86 bool isReady() const; | 86 bool isReady() const; |
| 87 | 87 |
| 88 private: | 88 private: |
| 89 bool m_watchingForLoad; | 89 bool m_watchingForLoad; |
| 90 RefPtrWillBeMember<Element> m_element; | 90 RefPtrWillBeMember<Element> m_element; |
| 91 TextPosition m_startingPosition; // Only used for inline script tags. | 91 TextPosition m_startingPosition; // Only used for inline script tags. |
| 92 bool m_integrityFailure; | 92 bool m_integrityFailure; |
| 93 | 93 |
| 94 RefPtrWillBeMember<ScriptStreamer> m_streamer; | 94 RefPtrWillBeMember<ScriptStreamer> m_streamer; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif // PendingScript_h | 99 #endif // PendingScript_h |
| OLD | NEW |