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

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

Issue 389043002: Oilpan: move FetchBodyStream to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
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 Response_h 5 #ifndef Response_h
6 #define Response_h 6 #define Response_h
7 7
8 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "modules/serviceworkers/FetchBodyStream.h" 10 #include "modules/serviceworkers/FetchBodyStream.h"
(...skipping 20 matching lines...) Expand all
31 static PassRefPtrWillBeRawPtr<Response> create(Blob*, const ResponseInit&, E xceptionState&); 31 static PassRefPtrWillBeRawPtr<Response> create(Blob*, const ResponseInit&, E xceptionState&);
32 32
33 static PassRefPtrWillBeRawPtr<Response> create(PassRefPtrWillBeRawPtr<FetchR esponseData>); 33 static PassRefPtrWillBeRawPtr<Response> create(PassRefPtrWillBeRawPtr<FetchR esponseData>);
34 34
35 String type() const; 35 String type() const;
36 String url() const; 36 String url() const;
37 unsigned short status() const; 37 unsigned short status() const;
38 String statusText() const; 38 String statusText() const;
39 PassRefPtrWillBeRawPtr<Headers> headers() const; 39 PassRefPtrWillBeRawPtr<Headers> headers() const;
40 40
41 PassRefPtr<FetchBodyStream> body(ExecutionContext*); 41 PassRefPtrWillBeRawPtr<FetchBodyStream> body(ExecutionContext*);
42 42
43 void populateWebServiceWorkerResponse(blink::WebServiceWorkerResponse&); 43 void populateWebServiceWorkerResponse(blink::WebServiceWorkerResponse&);
44 44
45 void trace(Visitor*); 45 void trace(Visitor*);
46 46
47 private: 47 private:
48 Response(); 48 Response();
49 explicit Response(PassRefPtrWillBeRawPtr<FetchResponseData>); 49 explicit Response(PassRefPtrWillBeRawPtr<FetchResponseData>);
50 50
51 RefPtrWillBeMember<FetchResponseData> m_response; 51 RefPtrWillBeMember<FetchResponseData> m_response;
52 RefPtrWillBeMember<Headers> m_headers; 52 RefPtrWillBeMember<Headers> m_headers;
53 // FIXME: Make this RefPtrWillBeMember. 53 RefPtrWillBeMember<FetchBodyStream> m_fetchBodyStream;
54 RefPtr<FetchBodyStream> m_fetchBodyStream;
55 }; 54 };
56 55
57 } // namespace WebCore 56 } // namespace WebCore
58 57
59 #endif // Response_h 58 #endif // Response_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/FetchBodyStream.idl ('k') | Source/modules/serviceworkers/Response.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698