| 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 Element* element() const { return m_element.get(); } | 67 Element* element() const { return m_element.get(); } |
| 68 void setElement(Element*); | 68 void setElement(Element*); |
| 69 Element* releaseElementAndClear(); | 69 Element* releaseElementAndClear(); |
| 70 | 70 |
| 71 void setScriptResource(ScriptResource*); | 71 void setScriptResource(ScriptResource*); |
| 72 | 72 |
| 73 void notifyFinished(Resource*) override; | 73 void notifyFinished(Resource*) override; |
| 74 String debugName() const override { return "PendingScript"; } | 74 String debugName() const override { return "PendingScript"; } |
| 75 void notifyAppendData(ScriptResource*) override; | 75 void notifyAppendData(ScriptResource*) override; |
| 76 void notifyCancel(ScriptResource*) override; |
| 76 | 77 |
| 77 DECLARE_TRACE(); | 78 DECLARE_TRACE(); |
| 78 | 79 |
| 79 ScriptSourceCode getSource(const KURL& documentURL, bool& errorOccurred) con
st; | 80 ScriptSourceCode getSource(const KURL& documentURL, bool& errorOccurred) con
st; |
| 80 | 81 |
| 81 void setStreamer(ScriptStreamer*); | 82 void setStreamer(ScriptStreamer*); |
| 82 void streamingFinished(); | 83 void streamingFinished(); |
| 83 | 84 |
| 84 bool isReady() const; | 85 bool isReady() const; |
| 85 bool errorOccurred() const; | 86 bool errorOccurred() const; |
| 86 | 87 |
| 87 void dispose(); | 88 void dispose(); |
| 88 | 89 |
| 89 private: | 90 private: |
| 90 PendingScript(Element*, ScriptResource*); | 91 PendingScript(Element*, ScriptResource*); |
| 91 | 92 |
| 92 bool m_watchingForLoad; | 93 bool m_watchingForLoad; |
| 93 Member<Element> m_element; | 94 Member<Element> m_element; |
| 94 TextPosition m_startingPosition; // Only used for inline script tags. | 95 TextPosition m_startingPosition; // Only used for inline script tags. |
| 95 bool m_integrityFailure; | 96 bool m_integrityFailure; |
| 96 double m_parserBlockingLoadStartTime; | 97 double m_parserBlockingLoadStartTime; |
| 97 | 98 |
| 98 Member<ScriptStreamer> m_streamer; | 99 Member<ScriptStreamer> m_streamer; |
| 99 Member<ScriptResourceClient> m_client; | 100 Member<ScriptResourceClient> m_client; |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } // namespace blink | 103 } // namespace blink |
| 103 | 104 |
| 104 #endif // PendingScript_h | 105 #endif // PendingScript_h |
| OLD | NEW |