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

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

Issue 516603004: [ServiceWorker] Support setting body to Request object in ServiceWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated yhirano's comment Created 6 years, 3 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/modules/modules.gypi ('k') | Source/modules/serviceworkers/Request.h » ('j') | 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 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool sameOriginDataURLFlag() { return m_sameOriginDataURLFlag; } 76 bool sameOriginDataURLFlag() { return m_sameOriginDataURLFlag; }
77 const Referrer& referrer() const { return m_referrer; } 77 const Referrer& referrer() const { return m_referrer; }
78 void setMode(Mode mode) { m_mode = mode; } 78 void setMode(Mode mode) { m_mode = mode; }
79 Mode mode() const { return m_mode; } 79 Mode mode() const { return m_mode; }
80 void setCredentials(Credentials credentials) { m_credentials = credentials; } 80 void setCredentials(Credentials credentials) { m_credentials = credentials; }
81 Credentials credentials() const { return m_credentials; } 81 Credentials credentials() const { return m_credentials; }
82 void setResponseTainting(Tainting tainting) { m_responseTainting = tainting; } 82 void setResponseTainting(Tainting tainting) { m_responseTainting = tainting; }
83 Tainting tainting() const { return m_responseTainting; } 83 Tainting tainting() const { return m_responseTainting; }
84 FetchHeaderList* headerList() { return m_headerList.get(); } 84 FetchHeaderList* headerList() { return m_headerList.get(); }
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 87
87 void trace(Visitor*); 88 void trace(Visitor*);
88 89
89 private: 90 private:
90 FetchRequestData(); 91 FetchRequestData();
91 92
92 static PassRefPtrWillBeRawPtr<FetchRequestData> create(); 93 static PassRefPtrWillBeRawPtr<FetchRequestData> create();
93 94
94 AtomicString m_method; 95 AtomicString m_method;
95 KURL m_url; 96 KURL m_url;
(...skipping 12 matching lines...) Expand all
108 Credentials m_credentials; 109 Credentials m_credentials;
109 // FIXME: Support m_useURLCredentialsFlag; 110 // FIXME: Support m_useURLCredentialsFlag;
110 // FIXME: Support m_manualRedirectFlag; 111 // FIXME: Support m_manualRedirectFlag;
111 // FIXME: Support m_redirectCount; 112 // FIXME: Support m_redirectCount;
112 Tainting m_responseTainting; 113 Tainting m_responseTainting;
113 }; 114 };
114 115
115 } // namespace blink 116 } // namespace blink
116 117
117 #endif // FetchRequestData_h 118 #endif // FetchRequestData_h
OLDNEW
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/serviceworkers/Request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698