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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/FileWriter.h

Issue 2040563002: Remove FileError interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fe-dep
Patch Set: handleEvent -> invoke and other review nits Created 4 years, 5 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 INIT = 0, 62 INIT = 0,
63 WRITING = 1, 63 WRITING = 1,
64 DONE = 2 64 DONE = 2
65 }; 65 };
66 66
67 void write(Blob*, ExceptionState&); 67 void write(Blob*, ExceptionState&);
68 void seek(long long position, ExceptionState&); 68 void seek(long long position, ExceptionState&);
69 void truncate(long long length, ExceptionState&); 69 void truncate(long long length, ExceptionState&);
70 void abort(ExceptionState&); 70 void abort(ExceptionState&);
71 ReadyState getReadyState() const { return m_readyState; } 71 ReadyState getReadyState() const { return m_readyState; }
72 FileError* error() const { return m_error.get(); } 72 DOMException* error() const { return m_error.get(); }
73 73
74 // WebFileWriterClient 74 // WebFileWriterClient
75 void didWrite(long long bytes, bool complete) override; 75 void didWrite(long long bytes, bool complete) override;
76 void didTruncate() override; 76 void didTruncate() override;
77 void didFail(WebFileError) override; 77 void didFail(WebFileError) override;
78 78
79 // ActiveDOMObject 79 // ActiveDOMObject
80 void stop() override; 80 void stop() override;
81 81
82 // ActiveScriptWrappable 82 // ActiveScriptWrappable
(...skipping 25 matching lines...) Expand all
108 void completeAbort(); 108 void completeAbort();
109 109
110 void doOperation(Operation); 110 void doOperation(Operation);
111 111
112 void signalCompletion(FileError::ErrorCode); 112 void signalCompletion(FileError::ErrorCode);
113 113
114 void fireEvent(const AtomicString& type); 114 void fireEvent(const AtomicString& type);
115 115
116 void setError(FileError::ErrorCode, ExceptionState&); 116 void setError(FileError::ErrorCode, ExceptionState&);
117 117
118 Member<FileError> m_error; 118 Member<DOMException> m_error;
119 ReadyState m_readyState; 119 ReadyState m_readyState;
120 Operation m_operationInProgress; 120 Operation m_operationInProgress;
121 Operation m_queuedOperation; 121 Operation m_queuedOperation;
122 long long m_bytesWritten; 122 long long m_bytesWritten;
123 long long m_bytesToWrite; 123 long long m_bytesToWrite;
124 long long m_truncateLength; 124 long long m_truncateLength;
125 long long m_numAborts; 125 long long m_numAborts;
126 long long m_recursionDepth; 126 long long m_recursionDepth;
127 double m_lastProgressNotificationTimeMS; 127 double m_lastProgressNotificationTimeMS;
128 Member<Blob> m_blobBeingWritten; 128 Member<Blob> m_blobBeingWritten;
129 }; 129 };
130 130
131 } // namespace blink 131 } // namespace blink
132 132
133 #endif // FileWriter_h 133 #endif // FileWriter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698