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

Side by Side Diff: Source/modules/serviceworkers/FetchBodyStream.h

Issue 463543002: Oilpan: Ensure that classes with virtual trace methods always have vtables for their left-most base… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 FetchBodyStream_h 5 #ifndef FetchBodyStream_h
6 #define FetchBodyStream_h 6 #define FetchBodyStream_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 29 matching lines...) Expand all
40 ScriptPromise asArrayBuffer(ScriptState*); 40 ScriptPromise asArrayBuffer(ScriptState*);
41 ScriptPromise asBlob(ScriptState*); 41 ScriptPromise asBlob(ScriptState*);
42 ScriptPromise asFormData(ScriptState*); 42 ScriptPromise asFormData(ScriptState*);
43 ScriptPromise asJSON(ScriptState*); 43 ScriptPromise asJSON(ScriptState*);
44 ScriptPromise asText(ScriptState*); 44 ScriptPromise asText(ScriptState*);
45 45
46 // ActiveDOMObject override. 46 // ActiveDOMObject override.
47 virtual void stop() OVERRIDE; 47 virtual void stop() OVERRIDE;
48 virtual bool hasPendingActivity() const OVERRIDE; 48 virtual bool hasPendingActivity() const OVERRIDE;
49 49
50 void trace(Visitor*) { } 50 virtual void trace(Visitor*) { }
51 51
52 private: 52 private:
53 FetchBodyStream(ExecutionContext*, PassRefPtr<BlobDataHandle>); 53 FetchBodyStream(ExecutionContext*, PassRefPtr<BlobDataHandle>);
54 ScriptPromise readAsync(ScriptState*, ResponseType); 54 ScriptPromise readAsync(ScriptState*, ResponseType);
55 void resolveJSON(); 55 void resolveJSON();
56 56
57 // FileReaderLoaderClient functions. 57 // FileReaderLoaderClient functions.
58 virtual void didStartLoading() OVERRIDE; 58 virtual void didStartLoading() OVERRIDE;
59 virtual void didReceiveData() OVERRIDE; 59 virtual void didReceiveData() OVERRIDE;
60 virtual void didFinishLoading() OVERRIDE; 60 virtual void didFinishLoading() OVERRIDE;
61 virtual void didFail(FileError::ErrorCode) OVERRIDE; 61 virtual void didFail(FileError::ErrorCode) OVERRIDE;
62 62
63 RefPtr<BlobDataHandle> m_blobDataHandle; 63 RefPtr<BlobDataHandle> m_blobDataHandle;
64 OwnPtr<FileReaderLoader> m_loader; 64 OwnPtr<FileReaderLoader> m_loader;
65 bool m_hasRead; 65 bool m_hasRead;
66 ResponseType m_responseType; 66 ResponseType m_responseType;
67 RefPtr<ScriptPromiseResolver> m_resolver; 67 RefPtr<ScriptPromiseResolver> m_resolver;
68 }; 68 };
69 69
70 } // namespace blink 70 } // namespace blink
71 71
72 #endif // FetchBodyStream_h 72 #endif // FetchBodyStream_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698