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

Unified Diff: webkit/plugins/ppapi/message_channel.h

Issue 11490014: PPAPI: Make Messaging not PostTask and copy when out-of-process. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years 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 | webkit/plugins/ppapi/message_channel.cc » ('j') | webkit/plugins/ppapi/message_channel.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/message_channel.h
diff --git a/webkit/plugins/ppapi/message_channel.h b/webkit/plugins/ppapi/message_channel.h
index 12f4c0b7c3c8935021339ef43f63e3fa60007cb0..b5c4fc01f900e6f97574f09865084814cc1856ff 100644
--- a/webkit/plugins/ppapi/message_channel.h
+++ b/webkit/plugins/ppapi/message_channel.h
@@ -5,6 +5,8 @@
#ifndef WEBKIT_PLUGINS_PPAPI_MESSAGE_CHANNEL_H_
#define WEBKIT_PLUGINS_PPAPI_MESSAGE_CHANNEL_H_
+#include <deque>
+
#include "base/memory/weak_ptr.h"
#include "ppapi/shared_impl/resource.h"
#include "third_party/npapi/bindings/npruntime.h"
@@ -70,6 +72,8 @@ class MessageChannel {
return instance_;
}
+ void DidCreateFinished();
dmichael (off chromium) 2012/12/10 22:02:52 suggestion: Might be easier to read as "FinishedDi
teravest 2012/12/10 22:30:59 Done.
+
private:
PluginInstance* instance_;
@@ -91,10 +95,15 @@ class MessageChannel {
// channel's instance. This is used by PostMessageToNative.
void PostMessageToNativeImpl(PP_Var message_data);
+ void DrainEarlyMessageQueue();
+
// This is used to ensure pending tasks will not fire after this object is
// destroyed.
base::WeakPtrFactory<MessageChannel> weak_ptr_factory_;
+ bool did_create_finished_;
+ std::deque<WebKit::WebSerializedScriptValue> early_message_queue_;
+
DISALLOW_COPY_AND_ASSIGN(MessageChannel);
};
« no previous file with comments | « no previous file | webkit/plugins/ppapi/message_channel.cc » ('j') | webkit/plugins/ppapi/message_channel.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698