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 21 matching lines...) Expand all Loading... |
32 #include "modules/filesystem/FileWriter.h" | 32 #include "modules/filesystem/FileWriter.h" |
33 | 33 |
34 #include "bindings/core/v8/ExceptionState.h" | 34 #include "bindings/core/v8/ExceptionState.h" |
35 #include "core/dom/ExceptionCode.h" | 35 #include "core/dom/ExceptionCode.h" |
36 #include "core/events/ProgressEvent.h" | 36 #include "core/events/ProgressEvent.h" |
37 #include "core/fileapi/Blob.h" | 37 #include "core/fileapi/Blob.h" |
38 #include "public/platform/WebFileWriter.h" | 38 #include "public/platform/WebFileWriter.h" |
39 #include "public/platform/WebURL.h" | 39 #include "public/platform/WebURL.h" |
40 #include "wtf/CurrentTime.h" | 40 #include "wtf/CurrentTime.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace blink { |
43 | 43 |
44 static const int kMaxRecursionDepth = 3; | 44 static const int kMaxRecursionDepth = 3; |
45 static const double progressNotificationIntervalMS = 50; | 45 static const double progressNotificationIntervalMS = 50; |
46 | 46 |
47 FileWriter* FileWriter::create(ExecutionContext* context) | 47 FileWriter* FileWriter::create(ExecutionContext* context) |
48 { | 48 { |
49 FileWriter* fileWriter = adoptRefCountedGarbageCollectedWillBeNoop(new FileW
riter(context)); | 49 FileWriter* fileWriter = adoptRefCountedGarbageCollectedWillBeNoop(new FileW
riter(context)); |
50 fileWriter->suspendIfNeeded(); | 50 fileWriter->suspendIfNeeded(); |
51 return fileWriter; | 51 return fileWriter; |
52 } | 52 } |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 } | 318 } |
319 | 319 |
320 void FileWriter::trace(Visitor* visitor) | 320 void FileWriter::trace(Visitor* visitor) |
321 { | 321 { |
322 visitor->trace(m_error); | 322 visitor->trace(m_error); |
323 visitor->trace(m_blobBeingWritten); | 323 visitor->trace(m_blobBeingWritten); |
324 FileWriterBase::trace(visitor); | 324 FileWriterBase::trace(visitor); |
325 EventTargetWithInlineData::trace(visitor); | 325 EventTargetWithInlineData::trace(visitor); |
326 } | 326 } |
327 | 327 |
328 } // namespace WebCore | 328 } // namespace blink |
OLD | NEW |