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 27 matching lines...) Expand all Loading... |
38 #include "modules/filesystem/AsyncFileWriterClient.h" | 38 #include "modules/filesystem/AsyncFileWriterClient.h" |
39 #include "modules/filesystem/FileWriterBase.h" | 39 #include "modules/filesystem/FileWriterBase.h" |
40 #include "wtf/PassRefPtr.h" | 40 #include "wtf/PassRefPtr.h" |
41 #include "wtf/RefPtr.h" | 41 #include "wtf/RefPtr.h" |
42 | 42 |
43 namespace WebCore { | 43 namespace WebCore { |
44 | 44 |
45 class Blob; | 45 class Blob; |
46 class ScriptExecutionContext; | 46 class ScriptExecutionContext; |
47 | 47 |
48 class FileWriter : public ScriptWrappable, public FileWriterBase, public ActiveD
OMObject, public EventTarget, public AsyncFileWriterClient { | 48 class FileWriter : public EventTarget, public ScriptWrappable, public FileWriter
Base, public ActiveDOMObject, public AsyncFileWriterClient { |
49 public: | 49 public: |
50 static PassRefPtr<FileWriter> create(ScriptExecutionContext*); | 50 static PassRefPtr<FileWriter> create(ScriptExecutionContext*); |
51 | 51 |
52 enum ReadyState { | 52 enum ReadyState { |
53 INIT = 0, | 53 INIT = 0, |
54 WRITING = 1, | 54 WRITING = 1, |
55 DONE = 2 | 55 DONE = 2 |
56 }; | 56 }; |
57 | 57 |
58 void write(Blob*, ExceptionCode&); | 58 void write(Blob*, ExceptionCode&); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 long long m_truncateLength; | 123 long long m_truncateLength; |
124 long long m_numAborts; | 124 long long m_numAborts; |
125 long long m_recursionDepth; | 125 long long m_recursionDepth; |
126 double m_lastProgressNotificationTimeMS; | 126 double m_lastProgressNotificationTimeMS; |
127 RefPtr<Blob> m_blobBeingWritten; | 127 RefPtr<Blob> m_blobBeingWritten; |
128 }; | 128 }; |
129 | 129 |
130 } // namespace WebCore | 130 } // namespace WebCore |
131 | 131 |
132 #endif // FileWriter_h | 132 #endif // FileWriter_h |
OLD | NEW |