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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 class FileReader : public RefCountedGarbageCollected<FileReader>, public ActiveD
OMObject, public EventTarget, public FileReaderLoaderClient { | 51 class FileReader : public RefCountedGarbageCollected<FileReader>, public ActiveD
OMObject, public EventTarget, public FileReaderLoaderClient { |
52 DECLARE_GC_INFO | 52 DECLARE_GC_INFO |
53 public: | 53 public: |
54 static PassRefPtr<FileReader> create(ScriptExecutionContext*); | 54 static PassRefPtr<FileReader> create(ScriptExecutionContext*); |
55 | 55 |
56 virtual ~FileReader(); | 56 virtual ~FileReader(); |
57 | 57 |
58 virtual void trace(Visitor*) { } | 58 virtual void trace(Visitor*) { } |
59 | 59 |
60 virtual void visitWith(Visitor* visitor) const OVERRIDE | 60 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
61 { | 61 { |
62 visitor->visit(this); | 62 visitor->mark(this); |
63 } | 63 } |
64 | 64 |
65 enum ReadyState { | 65 enum ReadyState { |
66 EMPTY = 0, | 66 EMPTY = 0, |
67 LOADING = 1, | 67 LOADING = 1, |
68 DONE = 2 | 68 DONE = 2 |
69 }; | 69 }; |
70 | 70 |
71 void readAsArrayBuffer(Blob*, ExceptionCode&); | 71 void readAsArrayBuffer(Blob*, ExceptionCode&); |
72 void readAsBinaryString(Blob*, ExceptionCode&); | 72 void readAsBinaryString(Blob*, ExceptionCode&); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 String m_encoding; | 128 String m_encoding; |
129 | 129 |
130 OwnPtr<FileReaderLoader> m_loader; | 130 OwnPtr<FileReaderLoader> m_loader; |
131 RefPtr<FileError> m_error; | 131 RefPtr<FileError> m_error; |
132 double m_lastProgressNotificationTimeMS; | 132 double m_lastProgressNotificationTimeMS; |
133 }; | 133 }; |
134 | 134 |
135 } // namespace WebCore | 135 } // namespace WebCore |
136 | 136 |
137 #endif // FileReader_h | 137 #endif // FileReader_h |
OLD | NEW |