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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/FetchResponseData.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 FetchResponseData_h 5 #ifndef FetchResponseData_h
6 #define FetchResponseData_h 6 #define FetchResponseData_h
7 7
8 #include "core/fetch/CrossOriginAccessControl.h" 8 #include "core/fetch/CrossOriginAccessControl.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "platform/weborigin/KURL.h" 11 #include "platform/weborigin/KURL.h"
12 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" 12 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h"
13 #include "wtf/PassRefPtr.h" 13 #include "wtf/PassRefPtr.h"
14 #include "wtf/text/AtomicString.h" 14 #include "wtf/text/AtomicString.h"
15 #include <memory>
16 15
17 namespace blink { 16 namespace blink {
18 17
19 class BodyStreamBuffer; 18 class BodyStreamBuffer;
20 class FetchHeaderList; 19 class FetchHeaderList;
21 class ScriptState; 20 class ScriptState;
22 class WebServiceWorkerResponse; 21 class WebServiceWorkerResponse;
23 22
24 class MODULES_EXPORT FetchResponseData final : public GarbageCollectedFinalized< FetchResponseData> { 23 class MODULES_EXPORT FetchResponseData final : public GarbageCollectedFinalized< FetchResponseData> {
25 WTF_MAKE_NONCOPYABLE(FetchResponseData); 24 WTF_MAKE_NONCOPYABLE(FetchResponseData);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 81
83 // Does not call response.setBlobDataHandle(). 82 // Does not call response.setBlobDataHandle().
84 void populateWebServiceWorkerResponse(WebServiceWorkerResponse& /* response */); 83 void populateWebServiceWorkerResponse(WebServiceWorkerResponse& /* response */);
85 84
86 DECLARE_TRACE(); 85 DECLARE_TRACE();
87 86
88 private: 87 private:
89 FetchResponseData(Type, unsigned short, AtomicString); 88 FetchResponseData(Type, unsigned short, AtomicString);
90 89
91 Type m_type; 90 Type m_type;
92 std::unique_ptr<TerminationReason> m_terminationReason; 91 OwnPtr<TerminationReason> m_terminationReason;
93 KURL m_url; 92 KURL m_url;
94 unsigned short m_status; 93 unsigned short m_status;
95 AtomicString m_statusMessage; 94 AtomicString m_statusMessage;
96 Member<FetchHeaderList> m_headerList; 95 Member<FetchHeaderList> m_headerList;
97 Member<FetchResponseData> m_internalResponse; 96 Member<FetchResponseData> m_internalResponse;
98 Member<BodyStreamBuffer> m_buffer; 97 Member<BodyStreamBuffer> m_buffer;
99 String m_mimeType; 98 String m_mimeType;
100 int64_t m_responseTime; 99 int64_t m_responseTime;
101 String m_cacheStorageCacheName; 100 String m_cacheStorageCacheName;
102 HTTPHeaderSet m_corsExposedHeaderNames; 101 HTTPHeaderSet m_corsExposedHeaderNames;
103 }; 102 };
104 103
105 } // namespace blink 104 } // namespace blink
106 105
107 #endif // FetchResponseData_h 106 #endif // FetchResponseData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698