| 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 20 matching lines...) Expand all Loading... |
| 31 #include "core/html/FormData.h" | 31 #include "core/html/FormData.h" |
| 32 | 32 |
| 33 #include "bindings/core/v8/ScriptState.h" | 33 #include "bindings/core/v8/ScriptState.h" |
| 34 #include "core/dom/ExecutionContext.h" | 34 #include "core/dom/ExecutionContext.h" |
| 35 #include "core/fileapi/Blob.h" | 35 #include "core/fileapi/Blob.h" |
| 36 #include "core/fileapi/File.h" | 36 #include "core/fileapi/File.h" |
| 37 #include "core/frame/UseCounter.h" | 37 #include "core/frame/UseCounter.h" |
| 38 #include "core/html/HTMLFormElement.h" | 38 #include "core/html/HTMLFormElement.h" |
| 39 #include "platform/network/FormDataEncoder.h" | 39 #include "platform/network/FormDataEncoder.h" |
| 40 #include "platform/text/LineEnding.h" | 40 #include "platform/text/LineEnding.h" |
| 41 #include "wtf/text/WTFString.h" | 41 #include "platform/wtf/text/WTFString.h" |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 namespace { | 45 namespace { |
| 46 | 46 |
| 47 class FormDataIterationSource final | 47 class FormDataIterationSource final |
| 48 : public PairIterable<String, FormDataEntryValue>::IterationSource { | 48 : public PairIterable<String, FormDataEntryValue>::IterationSource { |
| 49 public: | 49 public: |
| 50 FormDataIterationSource(FormData* form_data) | 50 FormDataIterationSource(FormData* form_data) |
| 51 : form_data_(form_data), current_(0) {} | 51 : form_data_(form_data), current_(0) {} |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 } | 330 } |
| 331 | 331 |
| 332 String filename = filename_; | 332 String filename = filename_; |
| 333 if (filename.IsNull()) | 333 if (filename.IsNull()) |
| 334 filename = "blob"; | 334 filename = "blob"; |
| 335 return File::Create(filename, CurrentTimeMS(), | 335 return File::Create(filename, CurrentTimeMS(), |
| 336 GetBlob()->GetBlobDataHandle()); | 336 GetBlob()->GetBlobDataHandle()); |
| 337 } | 337 } |
| 338 | 338 |
| 339 } // namespace blink | 339 } // namespace blink |
| OLD | NEW |