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 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 key = entry.name(); | 54 key = entry.name(); |
55 if (entry.isString()) | 55 if (entry.isString()) |
56 value.setUSVString(entry.string()); | 56 value.setUSVString(entry.string()); |
57 else if (entry.isFile()) | 57 else if (entry.isFile()) |
58 value.setFile(entry.file()); | 58 value.setFile(entry.file()); |
59 else | 59 else |
60 ASSERT_NOT_REACHED(); | 60 ASSERT_NOT_REACHED(); |
61 return true; | 61 return true; |
62 } | 62 } |
63 | 63 |
64 void trace(Visitor* visitor) override | 64 DEFINE_INLINE_VIRTUAL_TRACE() |
65 { | 65 { |
66 visitor->trace(m_formData); | 66 visitor->trace(m_formData); |
67 PairIterable<String, FormDataEntryValue>::IterationSource::trace(visitor
); | 67 PairIterable<String, FormDataEntryValue>::IterationSource::trace(visitor
); |
68 } | 68 } |
69 | 69 |
70 private: | 70 private: |
71 const RefPtrWillBeMember<DOMFormData> m_formData; | 71 const RefPtrWillBeMember<DOMFormData> m_formData; |
72 size_t m_current; | 72 size_t m_current; |
73 }; | 73 }; |
74 | 74 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 { | 142 { |
143 setBlob(name, blob, filename); | 143 setBlob(name, blob, filename); |
144 } | 144 } |
145 | 145 |
146 PairIterable<String, FormDataEntryValue>::IterationSource* DOMFormData::startIte
ration(ScriptState*, ExceptionState&) | 146 PairIterable<String, FormDataEntryValue>::IterationSource* DOMFormData::startIte
ration(ScriptState*, ExceptionState&) |
147 { | 147 { |
148 return new DOMFormDataIterationSource(this); | 148 return new DOMFormDataIterationSource(this); |
149 } | 149 } |
150 | 150 |
151 } // namespace blink | 151 } // namespace blink |
OLD | NEW |