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

Unified Diff: chrome/nacl/nacl_ipc_adapter.h

Issue 10796064: PPAPI/NaCl: Make nacl_ipc_adapter handle ImageData creation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sketch of idea for extracting handles generally Created 8 years, 5 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 | « no previous file | chrome/nacl/nacl_ipc_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/nacl/nacl_ipc_adapter.h
diff --git a/chrome/nacl/nacl_ipc_adapter.h b/chrome/nacl/nacl_ipc_adapter.h
index c8b29ae34670c947dc5602167f46e70d843270d0..19cd3e7f778e7205f5ca70f6398194a35f64bc51 100644
--- a/chrome/nacl/nacl_ipc_adapter.h
+++ b/chrome/nacl/nacl_ipc_adapter.h
@@ -5,6 +5,7 @@
#ifndef CHROME_NACL_NACL_IPC_ADAPTER_H_
#define CHROME_NACL_NACL_IPC_ADAPTER_H_
+#include <map>
#include <queue>
#include <string>
@@ -18,6 +19,7 @@
#include "base/task_runner.h"
#include "ipc/ipc_channel.h"
#include "ipc/ipc_message.h"
+#include "ipc/ipc_sync_message.h"
struct NaClDesc;
struct NaClImcTypedMsgHdr;
@@ -117,6 +119,11 @@ class NaClIPCAdapter : public base::RefCountedThreadSafe<NaClIPCAdapter>,
// to be received by the plugin.
std::queue< scoped_refptr<RewrittenMessage> > to_be_received_;
+ // This is a cheap and dirty hack to save off the size (and make sure we
+ // read the right replies).
+ typedef std::map<int, uint32_t> PendingImageDataMsgMap;
+ PendingImageDataMsgMap pending_image_data_msgs_;
+
// Data that we've queued from the plugin to send, but doesn't consist of a
// full message yet. The calling code can break apart the message into
// smaller pieces, and we need to send the message to the other process in
« no previous file with comments | « no previous file | chrome/nacl/nacl_ipc_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698