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

Unified Diff: public/platform/WebServiceWorkerResponse.h

Issue 307063002: ServiceWorker: Add a Response ctor that accepts the body as a Blob (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: don't crash on null body Created 6 years, 7 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 9e5a25c39550a4e09af6ce133c15559e9981748b..30b82ad2e9ae8f0b921ce59f5720856e0b6deb2c 100644
--- a/public/platform/WebServiceWorkerResponse.h
+++ b/public/platform/WebServiceWorkerResponse.h
@@ -14,10 +14,11 @@
#include "wtf/Forward.h"
#include "wtf/HashMap.h"
#include "wtf/text/StringHash.h"
-#endif
-// FIXME: Remove this after chromium code is cleaned up.
-#define NEW_SERVICE_WORKER_RESPONSE_INTERFACE
+namespace WebCore {
+class BlobDataHandle;
+}
+#endif
namespace blink {
@@ -49,12 +50,15 @@ public:
WebVector<WebString> getHeaderKeys() const;
WebString getHeader(const WebString& key) const;
+ WebString blobUUID() const;
+
#if INSIDE_BLINK
void setHeaders(const HashMap<String, String>&);
const HashMap<String, String>& headers() const;
-#endif
- // FIXME: Eventually this should have additional methods such as for blob.
+ void setBlobDataHandle(PassRefPtr<WebCore::BlobDataHandle>);
+ PassRefPtr<WebCore::BlobDataHandle> blobDataHandle() const;
+#endif
private:
WebPrivatePtr<WebServiceWorkerResponsePrivate> m_private;
« 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