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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/FetchDataLoader.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef FetchDataLoader_h 5 #ifndef FetchDataLoader_h
6 #define FetchDataLoader_h 6 #define FetchDataLoader_h
7 7
8 #include "core/dom/DOMArrayBuffer.h" 8 #include "core/dom/DOMArrayBuffer.h"
9 #include "core/streams/Stream.h" 9 #include "core/streams/Stream.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
(...skipping 19 matching lines...) Expand all
30 public: 30 public:
31 class MODULES_EXPORT Client : public GarbageCollectedMixin { 31 class MODULES_EXPORT Client : public GarbageCollectedMixin {
32 public: 32 public:
33 virtual ~Client() { } 33 virtual ~Client() { }
34 34
35 // The method corresponding to createLoaderAs... is called on success. 35 // The method corresponding to createLoaderAs... is called on success.
36 virtual void didFetchDataLoadedBlobHandle(PassRefPtr<BlobDataHandle>) 36 virtual void didFetchDataLoadedBlobHandle(PassRefPtr<BlobDataHandle>)
37 { 37 {
38 ASSERT_NOT_REACHED(); 38 ASSERT_NOT_REACHED();
39 } 39 }
40 virtual void didFetchDataLoadedArrayBuffer(PassRefPtr<DOMArrayBuffer>) 40 virtual void didFetchDataLoadedArrayBuffer(DOMArrayBuffer*)
41 { 41 {
42 ASSERT_NOT_REACHED(); 42 ASSERT_NOT_REACHED();
43 } 43 }
44 virtual void didFetchDataLoadedString(const String&) 44 virtual void didFetchDataLoadedString(const String&)
45 { 45 {
46 ASSERT_NOT_REACHED(); 46 ASSERT_NOT_REACHED();
47 } 47 }
48 // This is called after all data are read from |handle| and written 48 // This is called after all data are read from |handle| and written
49 // to |outStream|, and |outStream| is closed or aborted. 49 // to |outStream|, and |outStream| is closed or aborted.
50 virtual void didFetchDataLoadedStream() 50 virtual void didFetchDataLoadedStream()
(...skipping 19 matching lines...) Expand all
70 virtual void start(FetchDataConsumerHandle* /* handle */, Client*) = 0; 70 virtual void start(FetchDataConsumerHandle* /* handle */, Client*) = 0;
71 71
72 virtual void cancel() = 0; 72 virtual void cancel() = 0;
73 73
74 DEFINE_INLINE_VIRTUAL_TRACE() { } 74 DEFINE_INLINE_VIRTUAL_TRACE() { }
75 }; 75 };
76 76
77 } // namespace blink 77 } // namespace blink
78 78
79 #endif // FetchDataLoader_h 79 #endif // FetchDataLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698