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

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

Issue 2146403004: ThreadableLoader::cancel should be called before loader destruction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onheap-threadable-loader-client-wrapper
Patch Set: fix 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // - Otherwise, returns -1. 100 // - Otherwise, returns -1.
101 long long totalBytes() const { return m_totalBytes; } 101 long long totalBytes() const { return m_totalBytes; }
102 102
103 FileError::ErrorCode errorCode() const { return m_errorCode; } 103 FileError::ErrorCode errorCode() const { return m_errorCode; }
104 104
105 void setEncoding(const String&); 105 void setEncoding(const String&);
106 void setDataType(const String& dataType) { m_dataType = dataType; } 106 void setDataType(const String& dataType) { m_dataType = dataType; }
107 107
108 private: 108 private:
109 void startInternal(ExecutionContext&, const Stream*, PassRefPtr<BlobDataHand le>); 109 void startInternal(ExecutionContext&, const Stream*, PassRefPtr<BlobDataHand le>);
110 void terminate();
111 void cleanup(); 110 void cleanup();
112 111
113 void failed(FileError::ErrorCode); 112 void failed(FileError::ErrorCode);
114 void convertToText(); 113 void convertToText();
115 void convertToDataURL(); 114 void convertToDataURL();
116 115
117 static FileError::ErrorCode httpStatusCodeToErrorCode(int); 116 static FileError::ErrorCode httpStatusCodeToErrorCode(int);
118 117
119 ReadType m_readType; 118 ReadType m_readType;
120 FileReaderLoaderClient* m_client; 119 FileReaderLoaderClient* m_client;
(...skipping 24 matching lines...) Expand all
145 bool m_hasRange; 144 bool m_hasRange;
146 unsigned m_rangeStart; 145 unsigned m_rangeStart;
147 unsigned m_rangeEnd; 146 unsigned m_rangeEnd;
148 147
149 FileError::ErrorCode m_errorCode; 148 FileError::ErrorCode m_errorCode;
150 }; 149 };
151 150
152 } // namespace blink 151 } // namespace blink
153 152
154 #endif // FileReaderLoader_h 153 #endif // FileReaderLoader_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698