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

Unified Diff: content/child/threaded_data_provider.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/threaded_data_provider.h
diff --git a/content/child/threaded_data_provider.h b/content/child/threaded_data_provider.h
index 5cd7433021adb3aedb8dffa6adaa6d926a089f9d..f47d5553a6c83d382f1e88b7a9db26d0ecec5583 100644
--- a/content/child/threaded_data_provider.h
+++ b/content/child/threaded_data_provider.h
@@ -29,6 +29,7 @@ class WebThreadImplForWorkerScheduler;
}
namespace content {
+class RefCountedSharedMemory;
class ResourceDispatcher;
class ThreadedDataProvider {
@@ -36,7 +37,7 @@ class ThreadedDataProvider {
ThreadedDataProvider(
int request_id,
blink::WebThreadedDataReceiver* threaded_data_receiver,
- linked_ptr<base::SharedMemory> shm_buffer,
+ scoped_refptr<RefCountedSharedMemory> shm_buffer,
int shm_size,
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_);
@@ -77,7 +78,7 @@ class ThreadedDataProvider {
scoped_refptr<IPC::MessageFilter> filter_;
int request_id_;
- linked_ptr<base::SharedMemory> shm_buffer_;
+ scoped_refptr<RefCountedSharedMemory> shm_buffer_;
int shm_size_;
scoped_ptr<base::WeakPtrFactory<ThreadedDataProvider> >
background_thread_weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698