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

Unified Diff: ppapi/proxy/resource_message_params.cc

Issue 11274036: Refactor video capture to new design (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: export Created 8 years, 1 month 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 | « ppapi/proxy/resource_message_params.h ('k') | ppapi/proxy/serialized_structs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/resource_message_params.cc
diff --git a/ppapi/proxy/resource_message_params.cc b/ppapi/proxy/resource_message_params.cc
index 9228d7ea07c6819471dcd9427e8d30e7b84b6d8d..aaca8c9a6f4da0f4e51fffd5ef26d75a4ea63590 100644
--- a/ppapi/proxy/resource_message_params.cc
+++ b/ppapi/proxy/resource_message_params.cc
@@ -91,6 +91,15 @@ bool ResourceMessageParams::TakeSocketHandleAtIndex(
return true;
}
+void ResourceMessageParams::TakeAllSharedMemoryHandles(
+ std::vector<base::SharedMemoryHandle>* handles) const {
+ for (size_t i = 0; i < handles_->data().size(); ++i) {
+ base::SharedMemoryHandle handle;
+ if (TakeSharedMemoryHandleAtIndex(i, &handle))
+ handles->push_back(handle);
+ }
+}
+
void ResourceMessageParams::AppendHandle(const SerializedHandle& handle) const {
handles_->data().push_back(handle);
}
« no previous file with comments | « ppapi/proxy/resource_message_params.h ('k') | ppapi/proxy/serialized_structs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698