| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 ALLOW_ONLY_INLINE_ALLOCATION(); | 48 ALLOW_ONLY_INLINE_ALLOCATION(); |
| 49 public: | 49 public: |
| 50 ScriptSourceCode(); | 50 ScriptSourceCode(); |
| 51 // We lose the encoding information from ScriptResource. | 51 // We lose the encoding information from ScriptResource. |
| 52 // Not sure if that matters. | 52 // Not sure if that matters. |
| 53 explicit ScriptSourceCode(ScriptResource*); | 53 explicit ScriptSourceCode(ScriptResource*); |
| 54 ScriptSourceCode(const String&, const KURL& = KURL(), const TextPosition& st
artPosition = TextPosition::minimumPosition()); | 54 ScriptSourceCode(const String&, const KURL& = KURL(), const TextPosition& st
artPosition = TextPosition::minimumPosition()); |
| 55 ScriptSourceCode(PassRefPtrWillBeRawPtr<ScriptStreamer>, ScriptResource*); | 55 ScriptSourceCode(PassRefPtrWillBeRawPtr<ScriptStreamer>, ScriptResource*); |
| 56 | 56 |
| 57 ~ScriptSourceCode(); | 57 ~ScriptSourceCode(); |
| 58 void trace(Visitor*); | 58 DECLARE_TRACE(); |
| 59 | 59 |
| 60 bool isEmpty() const { return m_source.isEmpty(); } | 60 bool isEmpty() const { return m_source.isEmpty(); } |
| 61 | 61 |
| 62 // The null value represents a missing script, created by the nullary | 62 // The null value represents a missing script, created by the nullary |
| 63 // constructor, and differs from the empty script. | 63 // constructor, and differs from the empty script. |
| 64 bool isNull() const { return m_source.isNull(); } | 64 bool isNull() const { return m_source.isNull(); } |
| 65 | 65 |
| 66 const String& source() const { return m_source; } | 66 const String& source() const { return m_source; } |
| 67 ScriptResource* resource() const { return m_resource.get(); } | 67 ScriptResource* resource() const { return m_resource.get(); } |
| 68 const KURL& url() const; | 68 const KURL& url() const; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 79 RefPtrWillBeMember<ScriptStreamer> m_streamer; | 79 RefPtrWillBeMember<ScriptStreamer> m_streamer; |
| 80 mutable KURL m_url; | 80 mutable KURL m_url; |
| 81 TextPosition m_startPosition; | 81 TextPosition m_startPosition; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace blink | 84 } // namespace blink |
| 85 | 85 |
| 86 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::ScriptSourceCode); | 86 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::ScriptSourceCode); |
| 87 | 87 |
| 88 #endif // ScriptSourceCode_h | 88 #endif // ScriptSourceCode_h |
| OLD | NEW |