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

Side by Side Diff: third_party/WebKit/Source/platform/network/ResourceTimingInfo.h

Issue 1916703002: Prepare for move-only PassOwnPtr in the remaining directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@core1
Patch Set: Merge with trunk. Created 4 years, 7 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 /* 1 /*
2 * Copyright (C) 2013 Intel Inc. All rights reserved. 2 * Copyright (C) 2013 Intel Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef ResourceTimingInfo_h 31 #ifndef ResourceTimingInfo_h
32 #define ResourceTimingInfo_h 32 #define ResourceTimingInfo_h
33 33
34 #include "platform/CrossThreadCopier.h" 34 #include "platform/CrossThreadCopier.h"
35 #include "platform/network/ResourceRequest.h" 35 #include "platform/network/ResourceRequest.h"
36 #include "platform/network/ResourceResponse.h" 36 #include "platform/network/ResourceResponse.h"
37 #include "wtf/Allocator.h" 37 #include "wtf/Allocator.h"
38 #include "wtf/Functional.h"
38 #include "wtf/Noncopyable.h" 39 #include "wtf/Noncopyable.h"
39 #include "wtf/text/AtomicString.h" 40 #include "wtf/text/AtomicString.h"
40 41
41 namespace blink { 42 namespace blink {
42 43
43 struct CrossThreadResourceTimingInfoData; 44 struct CrossThreadResourceTimingInfoData;
44 45
45 class PLATFORM_EXPORT ResourceTimingInfo { 46 class PLATFORM_EXPORT ResourceTimingInfo {
46 USING_FAST_MALLOC(ResourceTimingInfo); 47 USING_FAST_MALLOC(ResourceTimingInfo);
47 WTF_MAKE_NONCOPYABLE(ResourceTimingInfo); 48 WTF_MAKE_NONCOPYABLE(ResourceTimingInfo);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 double m_initialTime; 113 double m_initialTime;
113 double m_loadFinishTime; 114 double m_loadFinishTime;
114 OwnPtr<CrossThreadResourceRequestData> m_initialRequest; 115 OwnPtr<CrossThreadResourceRequestData> m_initialRequest;
115 OwnPtr<CrossThreadResourceResponseData> m_finalResponse; 116 OwnPtr<CrossThreadResourceResponseData> m_finalResponse;
116 Vector<OwnPtr<CrossThreadResourceResponseData>> m_redirectChain; 117 Vector<OwnPtr<CrossThreadResourceResponseData>> m_redirectChain;
117 bool m_isMainResource; 118 bool m_isMainResource;
118 }; 119 };
119 120
120 template <> 121 template <>
121 struct CrossThreadCopier<ResourceTimingInfo> { 122 struct CrossThreadCopier<ResourceTimingInfo> {
122 typedef PassOwnPtr<CrossThreadResourceTimingInfoData> Type; 123 typedef WTF::PassedWrapper<PassOwnPtr<CrossThreadResourceTimingInfoData>> Ty pe;
123 static Type copy(const ResourceTimingInfo& info) { return info.copyData(); } 124 static Type copy(const ResourceTimingInfo& info) { return passed(info.copyDa ta()); }
124 }; 125 };
125 126
126 } // namespace blink 127 } // namespace blink
127 128
128 #endif 129 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698