| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. |
| 3 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org) | 3 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org) |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Lesser General Public | 6 * modify it under the terms of the GNU Lesser General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Lesser General Public License for more details. | 13 * Lesser General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Lesser General Public | 15 * You should have received a copy of the GNU Lesser General Public |
| 16 * License along with this library; if not, write to the Free Software | 16 * License along with this library; if not, write to the Free Software |
| 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
| 18 * MA 02110-1301 USA | 18 * MA 02110-1301 USA |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #ifndef XMLSerializer_h | 21 #ifndef XMLSerializer_h |
| 22 #define XMLSerializer_h | 22 #define XMLSerializer_h |
| 23 | 23 |
| 24 #include "bindings/core/v8/ScriptWrappable.h" | 24 #include "platform/bindings/ScriptWrappable.h" |
| 25 #include "platform/heap/Handle.h" | 25 #include "platform/heap/Handle.h" |
| 26 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 | 28 |
| 29 class Node; | 29 class Node; |
| 30 | 30 |
| 31 class XMLSerializer final : public GarbageCollected<XMLSerializer>, | 31 class XMLSerializer final : public GarbageCollected<XMLSerializer>, |
| 32 public ScriptWrappable { | 32 public ScriptWrappable { |
| 33 DEFINE_WRAPPERTYPEINFO(); | 33 DEFINE_WRAPPERTYPEINFO(); |
| 34 | 34 |
| 35 public: | 35 public: |
| 36 static XMLSerializer* Create() { return new XMLSerializer; } | 36 static XMLSerializer* Create() { return new XMLSerializer; } |
| 37 | 37 |
| 38 String serializeToString(Node*); | 38 String serializeToString(Node*); |
| 39 | 39 |
| 40 DEFINE_INLINE_TRACE() {} | 40 DEFINE_INLINE_TRACE() {} |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 XMLSerializer() {} | 43 XMLSerializer() {} |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace blink | 46 } // namespace blink |
| 47 | 47 |
| 48 #endif // XMLSerializer_h | 48 #endif // XMLSerializer_h |
| OLD | NEW |