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

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

Issue 2125003002: Move CrossThreadCopier from platform/ to wtf/ Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_RemoveTupleInBind
Patch Set: Rebase Created 4 years, 5 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) 2003, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 20 matching lines...) Expand all
31 #include "platform/HTTPNames.h" 31 #include "platform/HTTPNames.h"
32 #include "platform/network/EncodedFormData.h" 32 #include "platform/network/EncodedFormData.h"
33 #include "platform/network/HTTPHeaderMap.h" 33 #include "platform/network/HTTPHeaderMap.h"
34 #include "platform/network/HTTPParsers.h" 34 #include "platform/network/HTTPParsers.h"
35 #include "platform/network/ResourceLoadPriority.h" 35 #include "platform/network/ResourceLoadPriority.h"
36 #include "platform/weborigin/KURL.h" 36 #include "platform/weborigin/KURL.h"
37 #include "platform/weborigin/Referrer.h" 37 #include "platform/weborigin/Referrer.h"
38 #include "platform/weborigin/SecurityOrigin.h" 38 #include "platform/weborigin/SecurityOrigin.h"
39 #include "public/platform/WebAddressSpace.h" 39 #include "public/platform/WebAddressSpace.h"
40 #include "public/platform/WebURLRequest.h" 40 #include "public/platform/WebURLRequest.h"
41 #include "wtf/CrossThreadCopier.h"
41 #include "wtf/RefCounted.h" 42 #include "wtf/RefCounted.h"
42 #include <memory> 43 #include <memory>
43 44
44 namespace blink { 45 namespace blink {
45 46
46 enum class WebCachePolicy; 47 enum class WebCachePolicy;
47 48
48 enum ResourceRequestBlockedReason { 49 enum ResourceRequestBlockedReason {
49 ResourceRequestBlockedReasonCSP, 50 ResourceRequestBlockedReasonCSP,
50 ResourceRequestBlockedReasonMixedContent, 51 ResourceRequestBlockedReasonMixedContent,
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 bool m_didSetHTTPReferrer; 333 bool m_didSetHTTPReferrer;
333 bool m_checkForBrowserSideNavigation; 334 bool m_checkForBrowserSideNavigation;
334 double m_uiStartTime; 335 double m_uiStartTime;
335 bool m_isExternalRequest; 336 bool m_isExternalRequest;
336 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; 337 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy;
337 ResourceRequest::RedirectStatus m_redirectStatus; 338 ResourceRequest::RedirectStatus m_redirectStatus;
338 }; 339 };
339 340
340 } // namespace blink 341 } // namespace blink
341 342
343 namespace WTF {
344
345 template <>
346 struct CrossThreadCopier<blink::ResourceRequest> {
347 STATIC_ONLY(CrossThreadCopier);
348 typedef PassedWrapper<std::unique_ptr<blink::CrossThreadResourceRequestData> > Type;
349 PLATFORM_EXPORT static Type copy(const blink::ResourceRequest& request)
350 {
351 return passed(request.copyData());
352 }
353 };
354
355 } // namespace WTF
356
342 #endif // ResourceRequest_h 357 #endif // ResourceRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698