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

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

Issue 1878463002: Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy Created 4 years, 8 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void start(ExecutionContext*, const Stream&, unsigned readSize); 75 void start(ExecutionContext*, const Stream&, unsigned readSize);
76 void cancel(); 76 void cancel();
77 77
78 // ThreadableLoaderClient 78 // ThreadableLoaderClient
79 void didReceiveResponse(unsigned long, const ResourceResponse&, PassOwnPtr<W ebDataConsumerHandle>) override; 79 void didReceiveResponse(unsigned long, const ResourceResponse&, PassOwnPtr<W ebDataConsumerHandle>) override;
80 void didReceiveData(const char*, unsigned) override; 80 void didReceiveData(const char*, unsigned) override;
81 void didFinishLoading(unsigned long, double) override; 81 void didFinishLoading(unsigned long, double) override;
82 void didFail(const ResourceError&) override; 82 void didFail(const ResourceError&) override;
83 83
84 String stringResult(); 84 String stringResult();
85 PassRefPtr<DOMArrayBuffer> arrayBufferResult() const; 85 DOMArrayBuffer* arrayBufferResult() const;
86 86
87 // Returns the total bytes received. Bytes ignored by m_rawData won't be 87 // Returns the total bytes received. Bytes ignored by m_rawData won't be
88 // counted. 88 // counted.
89 // 89 //
90 // This value doesn't grow more than numeric_limits<unsigned> when 90 // This value doesn't grow more than numeric_limits<unsigned> when
91 // m_readType is not set to ReadByClient. 91 // m_readType is not set to ReadByClient.
92 long long bytesLoaded() const { return m_bytesLoaded; } 92 long long bytesLoaded() const { return m_bytesLoaded; }
93 93
94 // Before didReceiveResponse() is called: Returns -1. 94 // Before didReceiveResponse() is called: Returns -1.
95 // After didReceiveResponse() is called: 95 // After didReceiveResponse() is called:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 bool m_hasRange; 144 bool m_hasRange;
145 unsigned m_rangeStart; 145 unsigned m_rangeStart;
146 unsigned m_rangeEnd; 146 unsigned m_rangeEnd;
147 147
148 FileError::ErrorCode m_errorCode; 148 FileError::ErrorCode m_errorCode;
149 }; 149 };
150 150
151 } // namespace blink 151 } // namespace blink
152 152
153 #endif // FileReaderLoader_h 153 #endif // FileReaderLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698