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

Side by Side Diff: public/platform/WebServiceWorkerResponse.h

Issue 623753002: Let the client (browser) set blobs in WebServiceWorkerResponse. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@opacity
Patch Set: Use uint64_t for blob size Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « Source/platform/exported/WebServiceWorkerResponse.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebServiceWorkerResponse_h 5 #ifndef WebServiceWorkerResponse_h
6 #define WebServiceWorkerResponse_h 6 #define WebServiceWorkerResponse_h
7 7
8 #include "WebCommon.h" 8 #include "WebCommon.h"
9 #include "public/platform/WebPrivatePtr.h" 9 #include "public/platform/WebPrivatePtr.h"
10 #include "public/platform/WebServiceWorkerResponseType.h" 10 #include "public/platform/WebServiceWorkerResponseType.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void setHeader(const WebString& key, const WebString& value); 57 void setHeader(const WebString& key, const WebString& value);
58 58
59 // If the key already exists, appends the value to the same key (comma 59 // If the key already exists, appends the value to the same key (comma
60 // delimited) else creates a new entry. 60 // delimited) else creates a new entry.
61 void appendHeader(const WebString& key, const WebString& value); 61 void appendHeader(const WebString& key, const WebString& value);
62 62
63 WebVector<WebString> getHeaderKeys() const; 63 WebVector<WebString> getHeaderKeys() const;
64 WebString getHeader(const WebString& key) const; 64 WebString getHeader(const WebString& key) const;
65 void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const; 65 void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const;
66 66
67 void setBlob(const WebString& uuid, uint64_t size);
67 WebString blobUUID() const; 68 WebString blobUUID() const;
69 uint64_t blobSize() const;
68 70
69 #if INSIDE_BLINK 71 #if INSIDE_BLINK
70 const HTTPHeaderMap& headers() const; 72 const HTTPHeaderMap& headers() const;
71 73
72 void setBlobDataHandle(PassRefPtr<BlobDataHandle>); 74 void setBlobDataHandle(PassRefPtr<BlobDataHandle>);
73 PassRefPtr<BlobDataHandle> blobDataHandle() const; 75 PassRefPtr<BlobDataHandle> blobDataHandle() const;
74 #endif 76 #endif
75 77
76 private: 78 private:
77 WebPrivatePtr<WebServiceWorkerResponsePrivate> m_private; 79 WebPrivatePtr<WebServiceWorkerResponsePrivate> m_private;
78 }; 80 };
79 81
80 } // namespace blink 82 } // namespace blink
81 83
82 #endif // WebServiceWorkerResponse_h 84 #endif // WebServiceWorkerResponse_h
OLDNEW
« 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