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

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

Issue 2040563002: Remove FileError interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fe-dep
Patch Set: Devtools/test updates Created 4 years, 6 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void readAsArrayBuffer(Blob*, ExceptionState&); 65 void readAsArrayBuffer(Blob*, ExceptionState&);
66 void readAsBinaryString(Blob*, ExceptionState&); 66 void readAsBinaryString(Blob*, ExceptionState&);
67 void readAsText(Blob*, const String& encoding, ExceptionState&); 67 void readAsText(Blob*, const String& encoding, ExceptionState&);
68 void readAsText(Blob*, ExceptionState&); 68 void readAsText(Blob*, ExceptionState&);
69 void readAsDataURL(Blob*, ExceptionState&); 69 void readAsDataURL(Blob*, ExceptionState&);
70 void abort(); 70 void abort();
71 71
72 void doAbort(); 72 void doAbort();
73 73
74 ReadyState getReadyState() const { return m_state; } 74 ReadyState getReadyState() const { return m_state; }
75 FileError* error() { return m_error; } 75 DOMException* error() { return m_error; }
76 void result(StringOrArrayBuffer& resultAttribute) const; 76 void result(StringOrArrayBuffer& resultAttribute) const;
77 77
78 // ActiveDOMObject 78 // ActiveDOMObject
79 void stop() override; 79 void stop() override;
80 80
81 // ActiveScriptWrappable 81 // ActiveScriptWrappable
82 bool hasPendingActivity() const final; 82 bool hasPendingActivity() const final;
83 83
84 // EventTarget 84 // EventTarget
85 const AtomicString& interfaceName() const override; 85 const AtomicString& interfaceName() const override;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 LoadingStateAborted 122 LoadingStateAborted
123 }; 123 };
124 LoadingState m_loadingState; 124 LoadingState m_loadingState;
125 125
126 String m_blobType; 126 String m_blobType;
127 RefPtr<BlobDataHandle> m_blobDataHandle; 127 RefPtr<BlobDataHandle> m_blobDataHandle;
128 FileReaderLoader::ReadType m_readType; 128 FileReaderLoader::ReadType m_readType;
129 String m_encoding; 129 String m_encoding;
130 130
131 OwnPtr<FileReaderLoader> m_loader; 131 OwnPtr<FileReaderLoader> m_loader;
132 Member<FileError> m_error; 132 Member<DOMException> m_error;
133 double m_lastProgressNotificationTimeMS; 133 double m_lastProgressNotificationTimeMS;
134 }; 134 };
135 135
136 } // namespace blink 136 } // namespace blink
137 137
138 #endif // FileReader_h 138 #endif // FileReader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698