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

Unified Diff: content/public/common/resource_response.h

Issue 519533002: Initial PlzNavigate RDH-side logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/common/resource_devtools_info.cc ('k') | content/public/common/resource_response.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/resource_response.h
diff --git a/content/public/common/resource_response.h b/content/public/common/resource_response.h
index 8147d3ad668ca4b36505e29ea3a4753b44601ef8..2c64d6195c3e0380853fceb7e6bd1c8f5d9aec7d 100644
--- a/content/public/common/resource_response.h
+++ b/content/public/common/resource_response.h
@@ -40,12 +40,20 @@ struct SyncLoadResult : ResourceResponseHead {
// Simple wrapper that refcounts ResourceResponseHead.
// Inherited, rather than typedef'd, to allow forward declarations.
struct CONTENT_EXPORT ResourceResponse
- : public base::RefCounted<ResourceResponse> {
+ : public base::RefCountedThreadSafe<ResourceResponse> {
public:
ResourceResponseHead head;
+ // Performs a deep copy of the ResourceResponse and all fields in it, safe to
+ // pass across threads.
+ //
+ // TODO(davidben): This structure should be passed along in a scoped_ptr. It's
+ // currently reference-counted to avoid copies, but may be
+ // modified. https://crbug.com/416050
+ scoped_refptr<ResourceResponse> DeepCopy() const;
+
private:
- friend class base::RefCounted<ResourceResponse>;
+ friend class base::RefCountedThreadSafe<ResourceResponse>;
~ResourceResponse() {}
};
« no previous file with comments | « content/public/common/resource_devtools_info.cc ('k') | content/public/common/resource_response.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698