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

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

Issue 478693005: Oilpan: Ship Oilpan for serviceworkers/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/NavigatorServiceWorker.h ('k') | Source/modules/serviceworkers/Request.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Request.h
diff --git a/Source/modules/serviceworkers/Request.h b/Source/modules/serviceworkers/Request.h
index 7856f0deef1604b3e157547b6439951cbc9f40ba..eafb73f6a8e01d96c9d7c73b83d370a02c4ce5a4 100644
--- a/Source/modules/serviceworkers/Request.h
+++ b/Source/modules/serviceworkers/Request.h
@@ -12,7 +12,6 @@
#include "modules/serviceworkers/Headers.h"
#include "platform/heap/Handle.h"
#include "platform/weborigin/KURL.h"
-#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
#include "wtf/text/WTFString.h"
@@ -24,23 +23,22 @@ class ResourceRequest;
struct ThreadableLoaderOptions;
class WebServiceWorkerRequest;
-class Request FINAL : public RefCountedWillBeGarbageCollected<Request>, public ScriptWrappable {
- DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(Request);
+class Request FINAL : public GarbageCollected<Request>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, const String&, ExceptionState&);
- static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, const String&, const Dictionary&, ExceptionState&);
- static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, Request*, ExceptionState&);
- static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, Request*, const Dictionary&, ExceptionState&);
- static PassRefPtrWillBeRawPtr<Request> create(PassRefPtrWillBeRawPtr<FetchRequestData>);
- static PassRefPtrWillBeRawPtr<Request> create(const WebServiceWorkerRequest&);
+ static Request* create(ExecutionContext*, const String&, ExceptionState&);
+ static Request* create(ExecutionContext*, const String&, const Dictionary&, ExceptionState&);
+ static Request* create(ExecutionContext*, Request*, ExceptionState&);
+ static Request* create(ExecutionContext*, Request*, const Dictionary&, ExceptionState&);
+ static Request* create(FetchRequestData*);
+ static Request* create(const WebServiceWorkerRequest&);
- PassRefPtrWillBeRawPtr<FetchRequestData> request() { return m_request; }
+ FetchRequestData* request() { return m_request; }
String method() const;
String url() const;
- PassRefPtrWillBeRawPtr<Headers> headers() const { return m_headers; }
- PassRefPtrWillBeRawPtr<FetchBodyStream> body(ExecutionContext*);
+ Headers* headers() const { return m_headers; }
+ FetchBodyStream* body(ExecutionContext*);
String referrer() const;
String mode() const;
String credentials() const;
@@ -52,12 +50,12 @@ public:
void trace(Visitor*);
private:
- explicit Request(PassRefPtrWillBeRawPtr<FetchRequestData>);
+ explicit Request(FetchRequestData*);
explicit Request(const WebServiceWorkerRequest&);
- RefPtrWillBeMember<FetchRequestData> m_request;
- RefPtrWillBeMember<Headers> m_headers;
- RefPtrWillBeMember<FetchBodyStream> m_fetchBodyStream;
+ Member<FetchRequestData> m_request;
+ Member<Headers> m_headers;
+ Member<FetchBodyStream> m_fetchBodyStream;
};
} // namespace blink
« no previous file with comments | « Source/modules/serviceworkers/NavigatorServiceWorker.h ('k') | Source/modules/serviceworkers/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698