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

Unified Diff: ppapi/proxy/host_dispatcher.h

Issue 6493004: Implement basic crash detection and shutdown handling for out of process PPAP... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/dispatcher.cc ('k') | ppapi/proxy/host_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/host_dispatcher.h
===================================================================
--- ppapi/proxy/host_dispatcher.h (revision 74766)
+++ ppapi/proxy/host_dispatcher.h (working copy)
@@ -15,6 +15,7 @@
#include "ppapi/proxy/dispatcher.h"
#include "ppapi/proxy/plugin_var_tracker.h"
+struct PPB_Proxy_Private;
struct PPB_Var_Deprecated;
namespace base {
@@ -48,6 +49,14 @@
HostDispatcher* dispatcher);
static void RemoveForInstance(PP_Instance instance);
+ // Returns the host's notion of our PP_Module. This will be different than
+ // the plugin's notion of its PP_Module because the plugin process may be
+ // used by multiple renderer processes.
+ //
+ // Use this value instead of a value from the plugin whenever talking to the
+ // host.
+ PP_Module pp_module() const { return pp_module_; }
+
// Dispatcher overrides.
virtual bool IsPlugin() const;
@@ -61,9 +70,14 @@
// given interface isn't supported by the plugin or the proxy.
const void* GetProxiedInterface(const std::string& interface);
+ // Returns the proxy interface for talking to the implementation.
+ const PPB_Proxy_Private* GetPPBProxy();
+
private:
friend class HostDispatcherTest;
+ PP_Module pp_module_;
+
enum PluginInterfaceSupport {
INTERFACE_UNQUERIED = 0, // Must be 0 so memset(0) will clear the list.
INTERFACE_SUPPORTED,
@@ -75,6 +89,9 @@
// messages. They are created on demand when we receive messages.
scoped_ptr<InterfaceProxy> target_proxies_[INTERFACE_ID_COUNT];
+ // Lazily initialized, may be NULL. Use GetPPBProxy().
+ const PPB_Proxy_Private* ppb_proxy_;
+
DISALLOW_COPY_AND_ASSIGN(HostDispatcher);
};
« no previous file with comments | « ppapi/proxy/dispatcher.cc ('k') | ppapi/proxy/host_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698