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

Unified Diff: Source/modules/serviceworkers/Response.h

Issue 384633002: Oilpan: add transition types to remaining Fetch and ServiceWorker objects (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Another rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/serviceworkers/RespondWithObserver.cpp ('k') | Source/modules/serviceworkers/Response.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Response.h
diff --git a/Source/modules/serviceworkers/Response.h b/Source/modules/serviceworkers/Response.h
index ba41b63718f3c3c587f267cd33d58e1c4cac4588..5b770cc76a5e1c2cd1c0128dd24a00faa0bc7bca 100644
--- a/Source/modules/serviceworkers/Response.h
+++ b/Source/modules/serviceworkers/Response.h
@@ -10,6 +10,7 @@
#include "modules/serviceworkers/FetchResponseData.h"
#include "modules/serviceworkers/Headers.h"
#include "platform/blob/BlobData.h"
+#include "platform/heap/Handle.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
#include "wtf/text/WTFString.h"
@@ -20,30 +21,32 @@ namespace WebCore {
class Blob;
class ExceptionState;
-struct ResponseInit;
+class ResponseInit;
-class Response FINAL : public RefCounted<Response>, public ScriptWrappable {
+class Response FINAL : public RefCountedWillBeGarbageCollectedFinalized<Response>, public ScriptWrappable {
+ DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(Response);
public:
- static PassRefPtr<Response> create(Blob*, const Dictionary&, ExceptionState&);
- static PassRefPtr<Response> create(Blob*, const ResponseInit&, ExceptionState&);
+ static PassRefPtrWillBeRawPtr<Response> create(Blob*, const Dictionary&, ExceptionState&);
+ static PassRefPtrWillBeRawPtr<Response> create(Blob*, const ResponseInit&, ExceptionState&);
- static PassRefPtr<Response> create(PassRefPtr<FetchResponseData>);
- ~Response() { };
+ static PassRefPtrWillBeRawPtr<Response> create(PassRefPtrWillBeRawPtr<FetchResponseData>);
String type() const;
String url() const;
unsigned short status() const;
String statusText() const;
- PassRefPtr<Headers> headers() const;
+ PassRefPtrWillBeRawPtr<Headers> headers() const;
void populateWebServiceWorkerResponse(blink::WebServiceWorkerResponse&);
+ void trace(Visitor*);
+
private:
Response();
- Response(PassRefPtr<FetchResponseData>);
+ explicit Response(PassRefPtrWillBeRawPtr<FetchResponseData>);
- RefPtr<FetchResponseData> m_response;
- RefPtr<Headers> m_headers;
+ RefPtrWillBeMember<FetchResponseData> m_response;
+ RefPtrWillBeMember<Headers> m_headers;
// FIXME: Support FetchBodyStream.
};
« no previous file with comments | « Source/modules/serviceworkers/RespondWithObserver.cpp ('k') | Source/modules/serviceworkers/Response.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698