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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 void setWatchingForLoad(bool b) { m_watchingForLoad = b; } | 91 void setWatchingForLoad(bool b) { m_watchingForLoad = b; } |
92 | 92 |
93 Element* element() const { return m_element.get(); } | 93 Element* element() const { return m_element.get(); } |
94 void setElement(Element* element) { m_element = element; } | 94 void setElement(Element* element) { m_element = element; } |
95 PassRefPtrWillBeRawPtr<Element> releaseElementAndClear(); | 95 PassRefPtrWillBeRawPtr<Element> releaseElementAndClear(); |
96 | 96 |
97 void setScriptResource(ScriptResource*); | 97 void setScriptResource(ScriptResource*); |
98 | 98 |
99 virtual void notifyFinished(Resource*); | 99 virtual void notifyFinished(Resource*); |
100 | 100 |
101 void trace(Visitor*); | 101 virtual void trace(Visitor*) OVERRIDE; |
102 | 102 |
103 private: | 103 private: |
104 bool m_watchingForLoad; | 104 bool m_watchingForLoad; |
105 RefPtrWillBeMember<Element> m_element; | 105 RefPtrWillBeMember<Element> m_element; |
106 TextPosition m_startingPosition; // Only used for inline script tags. | 106 TextPosition m_startingPosition; // Only used for inline script tags. |
107 }; | 107 }; |
108 | 108 |
109 } | 109 } |
110 | 110 |
111 #endif | 111 #endif |
OLD | NEW |