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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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>
15 16
16 namespace blink { 17 namespace blink {
17 18
18 class BodyStreamBuffer; 19 class BodyStreamBuffer;
19 class FetchHeaderList; 20 class FetchHeaderList;
20 class ScriptState; 21 class ScriptState;
21 class WebServiceWorkerResponse; 22 class WebServiceWorkerResponse;
22 23
23 class MODULES_EXPORT FetchResponseData final : public GarbageCollectedFinalized< FetchResponseData> { 24 class MODULES_EXPORT FetchResponseData final : public GarbageCollectedFinalized< FetchResponseData> {
24 WTF_MAKE_NONCOPYABLE(FetchResponseData); 25 WTF_MAKE_NONCOPYABLE(FetchResponseData);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 82
82 // Does not call response.setBlobDataHandle(). 83 // Does not call response.setBlobDataHandle().
83 void populateWebServiceWorkerResponse(WebServiceWorkerResponse& /* response */); 84 void populateWebServiceWorkerResponse(WebServiceWorkerResponse& /* response */);
84 85
85 DECLARE_TRACE(); 86 DECLARE_TRACE();
86 87
87 private: 88 private:
88 FetchResponseData(Type, unsigned short, AtomicString); 89 FetchResponseData(Type, unsigned short, AtomicString);
89 90
90 Type m_type; 91 Type m_type;
91 OwnPtr<TerminationReason> m_terminationReason; 92 std::unique_ptr<TerminationReason> m_terminationReason;
92 KURL m_url; 93 KURL m_url;
93 unsigned short m_status; 94 unsigned short m_status;
94 AtomicString m_statusMessage; 95 AtomicString m_statusMessage;
95 Member<FetchHeaderList> m_headerList; 96 Member<FetchHeaderList> m_headerList;
96 Member<FetchResponseData> m_internalResponse; 97 Member<FetchResponseData> m_internalResponse;
97 Member<BodyStreamBuffer> m_buffer; 98 Member<BodyStreamBuffer> m_buffer;
98 String m_mimeType; 99 String m_mimeType;
99 int64_t m_responseTime; 100 int64_t m_responseTime;
100 String m_cacheStorageCacheName; 101 String m_cacheStorageCacheName;
101 HTTPHeaderSet m_corsExposedHeaderNames; 102 HTTPHeaderSet m_corsExposedHeaderNames;
102 }; 103 };
103 104
104 } // namespace blink 105 } // namespace blink
105 106
106 #endif // FetchResponseData_h 107 #endif // FetchResponseData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698