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

Side by Side Diff: Source/modules/serviceworkers/FetchRequestData.h

Issue 786893004: [ServiceWorker] Use BodyStreamBuffer as the body data of the Response object. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: introduced internalBlobDataHandle(), internalBuffer() and internalContentType() to Response and FetchResponseData Created 6 years 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 FetchRequestData_h 5 #ifndef FetchRequestData_h
6 #define FetchRequestData_h 6 #define FetchRequestData_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "platform/weborigin/KURL.h" 9 #include "platform/weborigin/KURL.h"
10 #include "platform/weborigin/Referrer.h" 10 #include "platform/weborigin/Referrer.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void setMode(WebURLRequest::FetchRequestMode mode) { m_mode = mode; } 77 void setMode(WebURLRequest::FetchRequestMode mode) { m_mode = mode; }
78 WebURLRequest::FetchRequestMode mode() const { return m_mode; } 78 WebURLRequest::FetchRequestMode mode() const { return m_mode; }
79 void setCredentials(WebURLRequest::FetchCredentialsMode credentials) { m_cre dentials = credentials; } 79 void setCredentials(WebURLRequest::FetchCredentialsMode credentials) { m_cre dentials = credentials; }
80 WebURLRequest::FetchCredentialsMode credentials() const { return m_credentia ls; } 80 WebURLRequest::FetchCredentialsMode credentials() const { return m_credentia ls; }
81 void setResponseTainting(Tainting tainting) { m_responseTainting = tainting; } 81 void setResponseTainting(Tainting tainting) { m_responseTainting = tainting; }
82 Tainting tainting() const { return m_responseTainting; } 82 Tainting tainting() const { return m_responseTainting; }
83 FetchHeaderList* headerList() const { return m_headerList.get(); } 83 FetchHeaderList* headerList() const { return m_headerList.get(); }
84 void setHeaderList(FetchHeaderList* headerList) { m_headerList = headerList; } 84 void setHeaderList(FetchHeaderList* headerList) { m_headerList = headerList; }
85 PassRefPtr<BlobDataHandle> blobDataHandle() const { return m_blobDataHandle; } 85 PassRefPtr<BlobDataHandle> blobDataHandle() const { return m_blobDataHandle; }
86 void setBlobDataHandle(PassRefPtr<BlobDataHandle> blobHandle) { m_blobDataHa ndle = blobHandle; } 86 void setBlobDataHandle(PassRefPtr<BlobDataHandle> blobHandle) { m_blobDataHa ndle = blobHandle; }
87 String contentType() const;
87 88
88 void trace(Visitor*); 89 void trace(Visitor*);
89 90
90 private: 91 private:
91 FetchRequestData(); 92 FetchRequestData();
92 93
93 AtomicString m_method; 94 AtomicString m_method;
94 KURL m_url; 95 KURL m_url;
95 Member<FetchHeaderList> m_headerList; 96 Member<FetchHeaderList> m_headerList;
96 RefPtr<BlobDataHandle> m_blobDataHandle; 97 RefPtr<BlobDataHandle> m_blobDataHandle;
(...skipping 10 matching lines...) Expand all
107 WebURLRequest::FetchCredentialsMode m_credentials; 108 WebURLRequest::FetchCredentialsMode m_credentials;
108 // FIXME: Support m_useURLCredentialsFlag; 109 // FIXME: Support m_useURLCredentialsFlag;
109 // FIXME: Support m_manualRedirectFlag; 110 // FIXME: Support m_manualRedirectFlag;
110 // FIXME: Support m_redirectCount; 111 // FIXME: Support m_redirectCount;
111 Tainting m_responseTainting; 112 Tainting m_responseTainting;
112 }; 113 };
113 114
114 } // namespace blink 115 } // namespace blink
115 116
116 #endif // FetchRequestData_h 117 #endif // FetchRequestData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698