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

Unified Diff: public/platform/WebServiceWorkerResponse.h

Issue 519803002: Support embedded created Response objects in ServiceWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@2e-request
Patch Set: rebase to trunk, now just waiting on upstream CL 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/exported/WebServiceWorkerResponse.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebServiceWorkerResponse.h
diff --git a/public/platform/WebServiceWorkerResponse.h b/public/platform/WebServiceWorkerResponse.h
index 00f7118b40bb6165ba9150b7bead68ef1142857f..e51363c4592fc36025680bf23eb03ca28091661d 100644
--- a/public/platform/WebServiceWorkerResponse.h
+++ b/public/platform/WebServiceWorkerResponse.h
@@ -20,6 +20,7 @@
namespace blink {
class BlobDataHandle;
+class WebHTTPHeaderVisitor;
class WebServiceWorkerResponsePrivate;
// Represents a response to a fetch operation. ServiceWorker uses this to
@@ -29,6 +30,7 @@ class BLINK_PLATFORM_EXPORT WebServiceWorkerResponse {
public:
~WebServiceWorkerResponse() { reset(); }
WebServiceWorkerResponse();
+ WebServiceWorkerResponse(const WebServiceWorkerResponse& other) { assign(other); }
WebServiceWorkerResponse& operator=(const WebServiceWorkerResponse& other)
{
assign(other);
@@ -50,6 +52,7 @@ public:
void setHeader(const WebString& key, const WebString& value);
WebVector<WebString> getHeaderKeys() const;
WebString getHeader(const WebString& key) const;
+ void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const;
WebString blobUUID() const;
« no previous file with comments | « Source/platform/exported/WebServiceWorkerResponse.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698