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

Unified Diff: ppapi/proxy/plugin_message_filter.h

Issue 869883003: Never lock the Pepper proxy lock on the IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix size_t vs int32_t Created 5 years, 9 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 | « ppapi/proxy/plugin_globals.cc ('k') | ppapi/proxy/plugin_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/plugin_message_filter.h
diff --git a/ppapi/proxy/plugin_message_filter.h b/ppapi/proxy/plugin_message_filter.h
index 2e239a2e40957cb64a20e0316143c395f27bbe98..e8d8940a7d45f2e6da776f643441a8ec32106db2 100644
--- a/ppapi/proxy/plugin_message_filter.h
+++ b/ppapi/proxy/plugin_message_filter.h
@@ -6,6 +6,7 @@
#define PPAPI_PROXY_PLUGIN_MESSAGE_FILTER_H_
#include <set>
+#include <vector>
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
@@ -13,6 +14,7 @@
#include "ipc/message_filter.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/proxy/ppapi_proxy_export.h"
+#include "ppapi/proxy/resource_message_filter.h"
namespace ppapi {
namespace proxy {
@@ -48,6 +50,9 @@ class PPAPI_PROXY_EXPORT PluginMessageFilter : public IPC::MessageFilter,
// IPC::Sender implementation.
virtual bool Send(IPC::Message* msg) override;
+ void AddResourceMessageFilter(
+ const scoped_refptr<ResourceMessageFilter>& filter);
+
// Simulates an incoming resource reply that is handled on the calling thread.
// For testing only.
static void DispatchResourceReplyForTest(
@@ -72,6 +77,8 @@ class PPAPI_PROXY_EXPORT PluginMessageFilter : public IPC::MessageFilter,
scoped_refptr<ResourceReplyThreadRegistrar> resource_reply_thread_registrar_;
+ std::vector<scoped_refptr<ResourceMessageFilter>> resource_filters_;
+
// The IPC sender to the renderer. May be NULL if we're not currently
// attached as a filter.
IPC::Sender* sender_;
« no previous file with comments | « ppapi/proxy/plugin_globals.cc ('k') | ppapi/proxy/plugin_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698