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

Unified Diff: Source/modules/serviceworkers/FetchRequestData.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
Index: Source/modules/serviceworkers/FetchRequestData.h
diff --git a/Source/modules/serviceworkers/FetchRequestData.h b/Source/modules/serviceworkers/FetchRequestData.h
index c81ae82f8467b610753a215691a8134a23113448..dc4dfdb3ae7cb127a96bdb287a1b9011b089b48e 100644
--- a/Source/modules/serviceworkers/FetchRequestData.h
+++ b/Source/modules/serviceworkers/FetchRequestData.h
@@ -5,6 +5,7 @@
#ifndef FetchRequestData_h
#define FetchRequestData_h
+#include "platform/heap/Handle.h"
#include "platform/weborigin/KURL.h"
#include "platform/weborigin/Referrer.h"
#include "wtf/PassOwnPtr.h"
@@ -26,7 +27,7 @@ class ResourceRequest;
class SecurityOrigin;
struct ThreadableLoaderOptions;
-class FetchRequestData : public RefCounted<FetchRequestData> {
+class FetchRequestData FINAL : public RefCountedWillBeGarbageCollectedFinalized<FetchRequestData> {
WTF_MAKE_NONCOPYABLE(FetchRequestData);
public:
enum Mode { SameOriginMode, NoCORSMode, CORSMode, CORSWithForcedPreflight };
@@ -64,9 +65,9 @@ public:
WebCore::Referrer m_referrer;
};
- static PassRefPtr<FetchRequestData> create(ExecutionContext*);
- static PassRefPtr<FetchRequestData> create(const blink::WebServiceWorkerRequest&);
- PassRefPtr<FetchRequestData> createRestrictedCopy(ExecutionContext*, PassRefPtr<SecurityOrigin>) const;
+ static PassRefPtrWillBeRawPtr<FetchRequestData> create(ExecutionContext*);
+ static PassRefPtrWillBeRawPtr<FetchRequestData> create(const blink::WebServiceWorkerRequest&);
+ PassRefPtrWillBeRawPtr<FetchRequestData> createRestrictedCopy(ExecutionContext*, PassRefPtr<SecurityOrigin>) const;
~FetchRequestData();
void setMethod(AtomicString method) { m_method = method; }
@@ -85,12 +86,16 @@ public:
Tainting tainting() const { return m_responseTainting; }
FetchHeaderList* headerList() { return m_headerList.get(); }
+ void trace(Visitor*);
+
private:
FetchRequestData();
+ static PassRefPtrWillBeRawPtr<FetchRequestData> create();
+
AtomicString m_method;
KURL m_url;
- RefPtr<FetchHeaderList> m_headerList;
+ RefPtrWillBeMember<FetchHeaderList> m_headerList;
bool m_unsafeRequestFlag;
// FIXME: Support body.
// FIXME: Support m_skipServiceWorkerFlag;
« no previous file with comments | « Source/modules/serviceworkers/FetchHeaderList.cpp ('k') | Source/modules/serviceworkers/FetchRequestData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698