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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 void notifyAppendData(ScriptResource*) override; | 71 void notifyAppendData(ScriptResource*) override; |
72 | 72 |
73 DECLARE_TRACE(); | 73 DECLARE_TRACE(); |
74 | 74 |
75 ScriptSourceCode getSource(const KURL& documentURL, bool& errorOccurred) con
st; | 75 ScriptSourceCode getSource(const KURL& documentURL, bool& errorOccurred) con
st; |
76 | 76 |
77 void setStreamer(PassRefPtrWillBeRawPtr<ScriptStreamer>); | 77 void setStreamer(PassRefPtrWillBeRawPtr<ScriptStreamer>); |
78 void streamingFinished(); | 78 void streamingFinished(); |
79 | 79 |
80 bool isReady() const; | 80 bool isReady() const; |
| 81 bool errorOccurred() const; |
81 | 82 |
82 void dispose(); | 83 void dispose(); |
83 | 84 |
84 private: | 85 private: |
85 PendingScript(Element*, ScriptResource*); | 86 PendingScript(Element*, ScriptResource*); |
86 | 87 |
87 bool m_watchingForLoad; | 88 bool m_watchingForLoad; |
88 RefPtrWillBeMember<Element> m_element; | 89 RefPtrWillBeMember<Element> m_element; |
89 TextPosition m_startingPosition; // Only used for inline script tags. | 90 TextPosition m_startingPosition; // Only used for inline script tags. |
90 bool m_integrityFailure; | 91 bool m_integrityFailure; |
91 | 92 |
92 RefPtrWillBeMember<ScriptStreamer> m_streamer; | 93 RefPtrWillBeMember<ScriptStreamer> m_streamer; |
93 ScriptResourceClient* m_client; | 94 ScriptResourceClient* m_client; |
94 }; | 95 }; |
95 | 96 |
96 } // namespace blink | 97 } // namespace blink |
97 | 98 |
98 #endif // PendingScript_h | 99 #endif // PendingScript_h |
OLD | NEW |