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

Side by Side Diff: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerResponse.h

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
Patch Set: Addressed comments from kinuko and haraken Created 3 years, 8 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
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 "public/platform/WebCommon.h" 8 #include "public/platform/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"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void AppendHeader(const WebString& key, const WebString& value); 63 void AppendHeader(const WebString& key, const WebString& value);
64 64
65 WebVector<WebString> GetHeaderKeys() const; 65 WebVector<WebString> GetHeaderKeys() const;
66 WebString GetHeader(const WebString& key) const; 66 WebString GetHeader(const WebString& key) const;
67 void VisitHTTPHeaderFields(WebHTTPHeaderVisitor*) const; 67 void VisitHTTPHeaderFields(WebHTTPHeaderVisitor*) const;
68 68
69 void SetBlob(const WebString& uuid, uint64_t size); 69 void SetBlob(const WebString& uuid, uint64_t size);
70 WebString BlobUUID() const; 70 WebString BlobUUID() const;
71 uint64_t BlobSize() const; 71 uint64_t BlobSize() const;
72 72
73 void SetStreamURL(const WebURL&);
74 const WebURL& StreamURL() const;
75
76 // Provides a more detailed error when status() is zero. 73 // Provides a more detailed error when status() is zero.
77 void SetError(WebServiceWorkerResponseError); 74 void SetError(WebServiceWorkerResponseError);
78 WebServiceWorkerResponseError GetError() const; 75 WebServiceWorkerResponseError GetError() const;
79 76
80 void SetResponseTime(int64_t); 77 void SetResponseTime(int64_t);
81 int64_t ResponseTime() const; 78 int64_t ResponseTime() const;
82 79
83 void SetCacheStorageCacheName(const WebString&); 80 void SetCacheStorageCacheName(const WebString&);
84 const WebString& CacheStorageCacheName() const; 81 const WebString& CacheStorageCacheName() const;
85 82
86 void SetCorsExposedHeaderNames(const WebVector<WebString>&); 83 void SetCorsExposedHeaderNames(const WebVector<WebString>&);
87 const WebVector<WebString>& CorsExposedHeaderNames() const; 84 const WebVector<WebString>& CorsExposedHeaderNames() const;
88 85
89 #if INSIDE_BLINK 86 #if INSIDE_BLINK
90 const HTTPHeaderMap& Headers() const; 87 const HTTPHeaderMap& Headers() const;
91 88
92 void SetBlobDataHandle(PassRefPtr<BlobDataHandle>); 89 void SetBlobDataHandle(PassRefPtr<BlobDataHandle>);
93 PassRefPtr<BlobDataHandle> GetBlobDataHandle() const; 90 PassRefPtr<BlobDataHandle> GetBlobDataHandle() const;
94 #endif 91 #endif
95 92
96 private: 93 private:
97 WebPrivatePtr<WebServiceWorkerResponsePrivate> private_; 94 WebPrivatePtr<WebServiceWorkerResponsePrivate> private_;
98 }; 95 };
99 96
100 } // namespace blink 97 } // namespace blink
101 98
102 #endif // WebServiceWorkerResponse_h 99 #endif // WebServiceWorkerResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698