| 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef FileWriter_h | 31 #ifndef FileWriter_h |
| 32 #define FileWriter_h | 32 #define FileWriter_h |
| 33 | 33 |
| 34 #include "bindings/v8/ScriptWrappable.h" | 34 #include "bindings/v8/ScriptWrappable.h" |
| 35 #include "core/dom/ActiveDOMObject.h" | 35 #include "core/dom/ActiveDOMObject.h" |
| 36 #include "core/dom/ExecutionContext.h" | 36 #include "core/dom/ExecutionContext.h" |
| 37 #include "core/events/EventTarget.h" | 37 #include "core/events/EventTarget.h" |
| 38 #include "core/fileapi/FileError.h" | 38 #include "core/fileapi/FileError.h" |
| 39 #include "heap/Handle.h" |
| 39 #include "modules/filesystem/FileWriterBase.h" | 40 #include "modules/filesystem/FileWriterBase.h" |
| 40 #include "public/platform/WebFileWriterClient.h" | 41 #include "public/platform/WebFileWriterClient.h" |
| 41 #include "wtf/PassRefPtr.h" | 42 #include "wtf/PassRefPtr.h" |
| 42 #include "wtf/RefPtr.h" | 43 #include "wtf/RefPtr.h" |
| 43 | 44 |
| 44 namespace WebCore { | 45 namespace WebCore { |
| 45 | 46 |
| 46 class Blob; | 47 class Blob; |
| 47 class ExceptionState; | 48 class ExceptionState; |
| 48 class ExecutionContext; | 49 class ExecutionContext; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void completeAbort(); | 100 void completeAbort(); |
| 100 | 101 |
| 101 void doOperation(Operation); | 102 void doOperation(Operation); |
| 102 | 103 |
| 103 void signalCompletion(FileError::ErrorCode); | 104 void signalCompletion(FileError::ErrorCode); |
| 104 | 105 |
| 105 void fireEvent(const AtomicString& type); | 106 void fireEvent(const AtomicString& type); |
| 106 | 107 |
| 107 void setError(FileError::ErrorCode, ExceptionState&); | 108 void setError(FileError::ErrorCode, ExceptionState&); |
| 108 | 109 |
| 109 RefPtr<FileError> m_error; | 110 RefPtrWillBePersistent<FileError> m_error; |
| 110 ReadyState m_readyState; | 111 ReadyState m_readyState; |
| 111 Operation m_operationInProgress; | 112 Operation m_operationInProgress; |
| 112 Operation m_queuedOperation; | 113 Operation m_queuedOperation; |
| 113 long long m_bytesWritten; | 114 long long m_bytesWritten; |
| 114 long long m_bytesToWrite; | 115 long long m_bytesToWrite; |
| 115 long long m_truncateLength; | 116 long long m_truncateLength; |
| 116 long long m_numAborts; | 117 long long m_numAborts; |
| 117 long long m_recursionDepth; | 118 long long m_recursionDepth; |
| 118 double m_lastProgressNotificationTimeMS; | 119 double m_lastProgressNotificationTimeMS; |
| 119 RefPtr<Blob> m_blobBeingWritten; | 120 RefPtrWillBePersistent<Blob> m_blobBeingWritten; |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 } // namespace WebCore | 123 } // namespace WebCore |
| 123 | 124 |
| 124 #endif // FileWriter_h | 125 #endif // FileWriter_h |
| OLD | NEW |