Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(985)

Side by Side Diff: Source/core/fileapi/FileReader.h

Issue 157363003: Implement Blob.close(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Avoid warning from PHP's fread() on empty reads Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Internal loading state, which could differ from ReadyState as it's 114 // Internal loading state, which could differ from ReadyState as it's
115 // for script-visible state while this one's for internal state. 115 // for script-visible state while this one's for internal state.
116 enum LoadingState { 116 enum LoadingState {
117 LoadingStateNone, 117 LoadingStateNone,
118 LoadingStatePending, 118 LoadingStatePending,
119 LoadingStateLoading, 119 LoadingStateLoading,
120 LoadingStateAborted 120 LoadingStateAborted
121 }; 121 };
122 LoadingState m_loadingState; 122 LoadingState m_loadingState;
123 123
124 RefPtr<Blob> m_blob; 124 String m_blobType;
125 RefPtr<BlobDataHandle> m_blobDataHandle;
125 FileReaderLoader::ReadType m_readType; 126 FileReaderLoader::ReadType m_readType;
126 String m_encoding; 127 String m_encoding;
127 128
128 OwnPtr<FileReaderLoader> m_loader; 129 OwnPtr<FileReaderLoader> m_loader;
129 RefPtr<FileError> m_error; 130 RefPtr<FileError> m_error;
130 double m_lastProgressNotificationTimeMS; 131 double m_lastProgressNotificationTimeMS;
131 }; 132 };
132 133
133 } // namespace WebCore 134 } // namespace WebCore
134 135
135 #endif // FileReader_h 136 #endif // FileReader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698