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

Side by Side Diff: third_party/WebKit/Source/platform/network/ResourceResponse.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) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 String m_cacheStorageCacheName; 450 String m_cacheStorageCacheName;
451 int64_t m_responseTime; 451 int64_t m_responseTime;
452 String m_remoteIPAddress; 452 String m_remoteIPAddress;
453 unsigned short m_remotePort; 453 unsigned short m_remotePort;
454 String m_downloadedFilePath; 454 String m_downloadedFilePath;
455 RefPtr<BlobDataHandle> m_downloadedFileHandle; 455 RefPtr<BlobDataHandle> m_downloadedFileHandle;
456 }; 456 };
457 457
458 } // namespace blink 458 } // namespace blink
459 459
460 namespace WTF {
461
462 template <>
463 struct CrossThreadCopier<blink::ResourceResponse> {
464 STATIC_ONLY(CrossThreadCopier);
465 typedef PassedWrapper<std::unique_ptr<blink::CrossThreadResourceResponseData >> Type;
466 PLATFORM_EXPORT static Type copy(const blink::ResourceResponse& response)
467 {
468 return passed(response.copyData());
469 }
470 };
471
472 } // namespace WTF
473
460 #endif // ResourceResponse_h 474 #endif // ResourceResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698