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

Unified Diff: content/child/resource_dispatcher.h

Issue 1103813002: Make WebURLLoader capable of retaining received buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
Index: content/child/resource_dispatcher.h
diff --git a/content/child/resource_dispatcher.h b/content/child/resource_dispatcher.h
index 769eae2589f2040106bb8dbd6fa17432ff220f3b..83734331f8f3dc3ab46c534d1eeda04da76a8630 100644
--- a/content/child/resource_dispatcher.h
+++ b/content/child/resource_dispatcher.h
@@ -12,6 +12,7 @@
#include "base/containers/hash_tables.h"
#include "base/memory/linked_ptr.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/shared_memory.h"
#include "base/memory/weak_ptr.h"
@@ -36,6 +37,7 @@ struct RedirectInfo;
}
namespace content {
+class RefCountedSharedMemory;
class RequestPeer;
class ResourceDispatcherDelegate;
class ResourceRequestBody;
@@ -164,7 +166,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
base::TimeTicks request_start;
base::TimeTicks response_start;
base::TimeTicks completion_time;
- linked_ptr<base::SharedMemory> buffer;
+ scoped_refptr<RefCountedSharedMemory> buffer;
linked_ptr<SiteIsolationResponseMetaData> site_isolation_metadata;
bool blocked_response;
int buffer_size;

Powered by Google App Engine
This is Rietveld 408576698