| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 ScriptSourceCode getSource(const KURL& documentURL, | 98 ScriptSourceCode getSource(const KURL& documentURL, |
| 99 bool& errorOccurred) const; | 99 bool& errorOccurred) const; |
| 100 | 100 |
| 101 void setStreamer(ScriptStreamer*); | 101 void setStreamer(ScriptStreamer*); |
| 102 void streamingFinished(); | 102 void streamingFinished(); |
| 103 | 103 |
| 104 bool isReady() const; | 104 bool isReady() const; |
| 105 bool errorOccurred() const; | 105 bool errorOccurred() const; |
| 106 | 106 |
| 107 void startStreamingIfPossible(Document*, ScriptStreamer::Type); |
| 107 void dispose(); | 108 void dispose(); |
| 108 | 109 |
| 109 private: | 110 private: |
| 110 PendingScript(ScriptElementBase*, | 111 PendingScript(ScriptElementBase*, |
| 111 ScriptResource*, | 112 ScriptResource*, |
| 112 const TextPosition&, | 113 const TextPosition&, |
| 113 bool isForTesting = false); | 114 bool isForTesting = false); |
| 114 PendingScript() = delete; | 115 PendingScript() = delete; |
| 115 | 116 |
| 116 void checkState() const; | 117 void checkState() const; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 138 Member<PendingScriptClient> m_client; | 139 Member<PendingScriptClient> m_client; |
| 139 | 140 |
| 140 // This flag is used to skip non-null checks of |m_element| in unit | 141 // This flag is used to skip non-null checks of |m_element| in unit |
| 141 // tests, because |m_element| can be null in unit tests. | 142 // tests, because |m_element| can be null in unit tests. |
| 142 const bool m_isForTesting; | 143 const bool m_isForTesting; |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 } // namespace blink | 146 } // namespace blink |
| 146 | 147 |
| 147 #endif // PendingScript_h | 148 #endif // PendingScript_h |
| OLD | NEW |