Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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, long long size); | |
| 67 WebString blobUUID() const; | 68 WebString blobUUID() const; |
| 69 long long blobSize() const; | |
|
jamesr
2014/10/07 04:33:13
i don't know much about blobs but if this is suppo
jkarlin
2014/10/07 09:34:35
Number of bytes. Blobs can refer to files and the
| |
| 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 |
| OLD | NEW |