| 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 30 matching lines...) Expand all Loading... |
| 41 #include "wtf/RefPtr.h" | 41 #include "wtf/RefPtr.h" |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 class Blob; | 45 class Blob; |
| 46 class ExceptionState; | 46 class ExceptionState; |
| 47 class ExecutionContext; | 47 class ExecutionContext; |
| 48 | 48 |
| 49 class FileWriter FINAL : public FileWriterBase, public ActiveDOMObject, public E
ventTargetWithInlineData, public WebFileWriterClient { | 49 class FileWriter FINAL : public FileWriterBase, public ActiveDOMObject, public E
ventTargetWithInlineData, public WebFileWriterClient { |
| 50 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<F
ileWriterBase>); | 50 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<F
ileWriterBase>); |
| 51 DEFINE_WRAPPERTYPEINFO(); |
| 51 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(FileWriter); | 52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(FileWriter); |
| 52 public: | 53 public: |
| 53 static FileWriter* create(ExecutionContext*); | 54 static FileWriter* create(ExecutionContext*); |
| 54 | 55 |
| 55 enum ReadyState { | 56 enum ReadyState { |
| 56 INIT = 0, | 57 INIT = 0, |
| 57 WRITING = 1, | 58 WRITING = 1, |
| 58 DONE = 2 | 59 DONE = 2 |
| 59 }; | 60 }; |
| 60 | 61 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 long long m_numAborts; | 120 long long m_numAborts; |
| 120 long long m_recursionDepth; | 121 long long m_recursionDepth; |
| 121 double m_lastProgressNotificationTimeMS; | 122 double m_lastProgressNotificationTimeMS; |
| 122 RefPtrWillBeMember<Blob> m_blobBeingWritten; | 123 RefPtrWillBeMember<Blob> m_blobBeingWritten; |
| 123 int m_asyncOperationId; | 124 int m_asyncOperationId; |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 } // namespace blink | 127 } // namespace blink |
| 127 | 128 |
| 128 #endif // FileWriter_h | 129 #endif // FileWriter_h |
| OLD | NEW |