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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 | 99 |
100 virtual void trace(Visitor*) OVERRIDE; | 100 virtual void trace(Visitor*) OVERRIDE; |
101 | 101 |
102 private: | 102 private: |
103 explicit FileReader(ExecutionContext*); | 103 explicit FileReader(ExecutionContext*); |
104 | 104 |
105 class ThrottlingController; | 105 class ThrottlingController; |
106 | 106 |
107 void terminate(); | 107 void terminate(); |
108 void readInternal(Blob*, FileReaderLoader::ReadType, ExceptionState&); | 108 void readInternal(Blob*, FileReaderLoader::ReadType, ExceptionState&); |
109 void fireErrorEvent(int httpStatusCode); | |
aandrey
2014/08/05 16:03:59
dead code
| |
110 void fireEvent(const AtomicString& type); | 109 void fireEvent(const AtomicString& type); |
111 | 110 |
112 void executePendingRead(); | 111 void executePendingRead(); |
113 | 112 |
114 ReadyState m_state; | 113 ReadyState m_state; |
115 | 114 |
116 // Internal loading state, which could differ from ReadyState as it's | 115 // Internal loading state, which could differ from ReadyState as it's |
117 // for script-visible state while this one's for internal state. | 116 // for script-visible state while this one's for internal state. |
118 enum LoadingState { | 117 enum LoadingState { |
119 LoadingStateNone, | 118 LoadingStateNone, |
120 LoadingStatePending, | 119 LoadingStatePending, |
121 LoadingStateLoading, | 120 LoadingStateLoading, |
122 LoadingStateAborted | 121 LoadingStateAborted |
123 }; | 122 }; |
124 LoadingState m_loadingState; | 123 LoadingState m_loadingState; |
125 | 124 |
126 String m_blobType; | 125 String m_blobType; |
127 RefPtr<BlobDataHandle> m_blobDataHandle; | 126 RefPtr<BlobDataHandle> m_blobDataHandle; |
128 FileReaderLoader::ReadType m_readType; | 127 FileReaderLoader::ReadType m_readType; |
129 String m_encoding; | 128 String m_encoding; |
130 | 129 |
131 OwnPtr<FileReaderLoader> m_loader; | 130 OwnPtr<FileReaderLoader> m_loader; |
132 RefPtrWillBeMember<FileError> m_error; | 131 RefPtrWillBeMember<FileError> m_error; |
133 double m_lastProgressNotificationTimeMS; | 132 double m_lastProgressNotificationTimeMS; |
133 int m_asyncOperationId; | |
134 }; | 134 }; |
135 | 135 |
136 } // namespace blink | 136 } // namespace blink |
137 | 137 |
138 #endif // FileReader_h | 138 #endif // FileReader_h |
OLD | NEW |