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

Unified Diff: public/platform/WebServiceWorkerRequest.h

Issue 516123004: Support ServiceWorker created request objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@minimaster
Patch Set: fix more builds 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/platform/network/HTTPHeaderMap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebServiceWorkerRequest.h
diff --git a/public/platform/WebServiceWorkerRequest.h b/public/platform/WebServiceWorkerRequest.h
index 8c0b219b24a2c8b18478107029da1e338948e6b6..89a45ae0c0859f46a40dd5f2b47d8b0dc13ccd31 100644
--- a/public/platform/WebServiceWorkerRequest.h
+++ b/public/platform/WebServiceWorkerRequest.h
@@ -22,15 +22,15 @@
namespace blink {
class BlobDataHandle;
+class WebHTTPHeaderVisitor;
class WebServiceWorkerRequestPrivate;
-// Represents a request of a fetch operation. FetchEvent dispatched by the
-// browser contains this. The plan is for the Cache and fetch() API to also use
-// it.
+// Represents a request for a web resource.
class BLINK_PLATFORM_EXPORT WebServiceWorkerRequest {
public:
~WebServiceWorkerRequest() { reset(); }
WebServiceWorkerRequest();
+ WebServiceWorkerRequest(const WebServiceWorkerRequest& other) { assign(other); }
WebServiceWorkerRequest& operator=(const WebServiceWorkerRequest& other)
{
assign(other);
@@ -47,10 +47,13 @@ public:
WebString method() const;
void setHeader(const WebString& key, const WebString& value);
+ void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const;
void setBlob(const WebString& uuid, long long size);
void setReferrer(const WebString&, WebReferrerPolicy);
+ WebURL referrerUrl() const;
+ WebReferrerPolicy referrerPolicy() const;
void setIsReload(bool);
bool isReload() const;
« no previous file with comments | « Source/platform/network/HTTPHeaderMap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698