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

Unified Diff: ppapi/proxy/dispatcher.h

Issue 4985001: Initial audio implementation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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/DEPS ('k') | ppapi/proxy/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/dispatcher.h
===================================================================
--- ppapi/proxy/dispatcher.h (revision 67903)
+++ ppapi/proxy/dispatcher.h (working copy)
@@ -10,6 +10,7 @@
#include <vector>
#include "base/linked_ptr.h"
+#include "base/process.h"
#include "base/scoped_ptr.h"
#include "ipc/ipc_channel.h"
#include "ipc/ipc_channel_handle.h"
@@ -86,6 +87,14 @@
// or not supported by the remote side, returns NULL.
const void* GetProxiedInterface(const std::string& interface);
+ // Returns the remote process' handle. For the host dispatcher, this will be
+ // the plugin process, and for the plugin dispatcher, this will be the
+ // renderer process. This is used for sharing memory and such and is
+ // guaranteed valid (unless the remote process has suddenly died).
+ base::ProcessHandle remote_process_handle() const {
+ return remote_process_handle_;
+ }
+
// Called if the remote side is declaring to us which interfaces it supports
// so we don't have to query for each one. We'll pre-create proxies for
// each of the given interfaces.
@@ -105,7 +114,8 @@
}
protected:
- Dispatcher(GetInterfaceFunc local_get_interface);
+ Dispatcher(base::ProcessHandle remote_process_handle,
+ GetInterfaceFunc local_get_interface);
// Setter for the derived classes to set the appropriate var serialization.
// Takes ownership of the given pointer, which must be on the heap.
@@ -154,6 +164,7 @@
// this dispatcher.
PP_Module pp_module_;
+ base::ProcessHandle remote_process_handle_; // See getter above.
scoped_ptr<IPC::SyncChannel> channel_;
bool disallow_trusted_interfaces_;
« no previous file with comments | « ppapi/proxy/DEPS ('k') | ppapi/proxy/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698