| 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 18 matching lines...) Expand all Loading... |
| 29 #include "bindings/core/v8/ScriptWrappable.h" | 29 #include "bindings/core/v8/ScriptWrappable.h" |
| 30 #include "core/CoreExport.h" | 30 #include "core/CoreExport.h" |
| 31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
| 32 #include "wtf/Vector.h" | 32 #include "wtf/Vector.h" |
| 33 #include "wtf/text/WTFString.h" | 33 #include "wtf/text/WTFString.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class ExecutionContext; | 37 class ExecutionContext; |
| 38 | 38 |
| 39 // FIXME: Some consumers of this class may benefit from lazily fetching items ra
ther | 39 // FIXME: Some consumers of this class may benefit from lazily fetching items |
| 40 // than creating the list statically as is currently the only option. | 40 // rather than creating the list statically as is currently the only option. |
| 41 class CORE_EXPORT DOMStringList final | 41 class CORE_EXPORT DOMStringList final |
| 42 : public GarbageCollectedFinalized<DOMStringList>, | 42 : public GarbageCollectedFinalized<DOMStringList>, |
| 43 public ScriptWrappable { | 43 public ScriptWrappable { |
| 44 DEFINE_WRAPPERTYPEINFO(); | 44 DEFINE_WRAPPERTYPEINFO(); |
| 45 | 45 |
| 46 public: | 46 public: |
| 47 // We would like to remove DOMStringList from the platform if possible. | 47 // We would like to remove DOMStringList from the platform if possible. |
| 48 // Track the source of each instance so we can measure the use of methods | 48 // Track the source of each instance so we can measure the use of methods |
| 49 // not present on Arrays and determine the feasibility of removal and | 49 // not present on Arrays and determine the feasibility of removal and |
| 50 // what path it should take. http://crbug.com/460726 | 50 // what path it should take. http://crbug.com/460726 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 73 private: | 73 private: |
| 74 explicit DOMStringList(Source source) : m_source(source) {} | 74 explicit DOMStringList(Source source) : m_source(source) {} |
| 75 | 75 |
| 76 Vector<String> m_strings; | 76 Vector<String> m_strings; |
| 77 Source m_source; | 77 Source m_source; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace blink | 80 } // namespace blink |
| 81 | 81 |
| 82 #endif // DOMStringList_h | 82 #endif // DOMStringList_h |
| OLD | NEW |