| 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
|
|
|