| 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/WebString.h" | 10 #include "public/platform/WebString.h" |
| 11 #include "public/platform/WebURL.h" | 11 #include "public/platform/WebURL.h" |
| 12 #include "public/platform/WebVector.h" | 12 #include "public/platform/WebVector.h" |
| 13 | 13 |
| 14 #if INSIDE_BLINK | 14 #if INSIDE_BLINK |
| 15 #include "wtf/Forward.h" | 15 #include "wtf/Forward.h" |
| 16 #include "wtf/HashMap.h" | 16 #include "wtf/HashMap.h" |
| 17 #include "wtf/text/StringHash.h" | 17 #include "wtf/text/StringHash.h" |
| 18 | 18 |
| 19 namespace WebCore { | 19 namespace blink { |
| 20 class BlobDataHandle; | 20 class BlobDataHandle; |
| 21 } | 21 } |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 namespace blink { | 24 namespace blink { |
| 25 | 25 |
| 26 class WebServiceWorkerResponsePrivate; | 26 class WebServiceWorkerResponsePrivate; |
| 27 | 27 |
| 28 // Represents a response to a fetch operation. ServiceWorker uses this to | 28 // Represents a response to a fetch operation. ServiceWorker uses this to |
| 29 // respond to a FetchEvent dispatched by the browser. The plan is for the Cache | 29 // respond to a FetchEvent dispatched by the browser. The plan is for the Cache |
| (...skipping 23 matching lines...) Expand all Loading... |
| 53 void setHeader(const WebString& key, const WebString& value); | 53 void setHeader(const WebString& key, const WebString& value); |
| 54 WebVector<WebString> getHeaderKeys() const; | 54 WebVector<WebString> getHeaderKeys() const; |
| 55 WebString getHeader(const WebString& key) const; | 55 WebString getHeader(const WebString& key) const; |
| 56 | 56 |
| 57 WebString blobUUID() const; | 57 WebString blobUUID() const; |
| 58 | 58 |
| 59 #if INSIDE_BLINK | 59 #if INSIDE_BLINK |
| 60 void setHeaders(const HashMap<String, String>&); | 60 void setHeaders(const HashMap<String, String>&); |
| 61 const HashMap<String, String>& headers() const; | 61 const HashMap<String, String>& headers() const; |
| 62 | 62 |
| 63 void setBlobDataHandle(PassRefPtr<WebCore::BlobDataHandle>); | 63 void setBlobDataHandle(PassRefPtr<blink::BlobDataHandle>); |
| 64 PassRefPtr<WebCore::BlobDataHandle> blobDataHandle() const; | 64 PassRefPtr<blink::BlobDataHandle> blobDataHandle() const; |
| 65 #endif | 65 #endif |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 WebPrivatePtr<WebServiceWorkerResponsePrivate> m_private; | 68 WebPrivatePtr<WebServiceWorkerResponsePrivate> m_private; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace blink | 71 } // namespace blink |
| 72 | 72 |
| 73 #endif // WebServiceWorkerResponse_h | 73 #endif // WebServiceWorkerResponse_h |
| OLD | NEW |