| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 void readAsText(Blob*, const String& encoding, ExceptionState&); | 68 void readAsText(Blob*, const String& encoding, ExceptionState&); |
| 69 void readAsText(Blob*, ExceptionState&); | 69 void readAsText(Blob*, ExceptionState&); |
| 70 void readAsDataURL(Blob*, ExceptionState&); | 70 void readAsDataURL(Blob*, ExceptionState&); |
| 71 void abort(); | 71 void abort(); |
| 72 | 72 |
| 73 ReadyState getReadyState() const { return m_state; } | 73 ReadyState getReadyState() const { return m_state; } |
| 74 DOMException* error() { return m_error; } | 74 DOMException* error() { return m_error; } |
| 75 void result(StringOrArrayBuffer& resultAttribute) const; | 75 void result(StringOrArrayBuffer& resultAttribute) const; |
| 76 | 76 |
| 77 // ContextLifecycleObserver | 77 // ContextLifecycleObserver |
| 78 void contextDestroyed() override; | 78 void contextDestroyed(ExecutionContext*) override; |
| 79 | 79 |
| 80 // ScriptWrappable | 80 // ScriptWrappable |
| 81 bool hasPendingActivity() const final; | 81 bool hasPendingActivity() const final; |
| 82 | 82 |
| 83 // EventTarget | 83 // EventTarget |
| 84 const AtomicString& interfaceName() const override; | 84 const AtomicString& interfaceName() const override; |
| 85 ExecutionContext* getExecutionContext() const override { | 85 ExecutionContext* getExecutionContext() const override { |
| 86 return ContextLifecycleObserver::getExecutionContext(); | 86 return ContextLifecycleObserver::getExecutionContext(); |
| 87 } | 87 } |
| 88 | 88 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 String m_encoding; | 131 String m_encoding; |
| 132 | 132 |
| 133 std::unique_ptr<FileReaderLoader> m_loader; | 133 std::unique_ptr<FileReaderLoader> m_loader; |
| 134 Member<DOMException> m_error; | 134 Member<DOMException> m_error; |
| 135 double m_lastProgressNotificationTimeMS; | 135 double m_lastProgressNotificationTimeMS; |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace blink | 138 } // namespace blink |
| 139 | 139 |
| 140 #endif // FileReader_h | 140 #endif // FileReader_h |
| OLD | NEW |