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

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: Created 8 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
Index: ppapi/proxy/resource_message_params.cc
diff --git a/ppapi/proxy/resource_message_params.cc b/ppapi/proxy/resource_message_params.cc
index 6d3fa02f465236e903b54445ca1c8700cce15aa2..763af72e298be207291f57cde4f382fc685efb87 100644
--- a/ppapi/proxy/resource_message_params.cc
+++ b/ppapi/proxy/resource_message_params.cc
@@ -70,6 +70,15 @@ bool ResourceMessageParams::GetSocketHandleAtIndex(
return true;
}
+void ResourceMessageParams::GetAllSharedMemoryHandles(
+ std::vector<base::SharedMemoryHandle>* handles) const {
+ for (size_t i = 0; i < handles_.size(); ++i) {
+ base::SharedMemoryHandle handle;
+ if (GetSharedMemoryHandleAtIndex(i, &handle));
+ handles->push_back(handle);
+ }
+}
+
void ResourceMessageParams::AppendHandle(const SerializedHandle& handle) {
handles_.push_back(handle);
}

Powered by Google App Engine
This is Rietveld 408576698