diff options
Diffstat (limited to 'content/renderer/render_thread_impl.h')
-rw-r--r-- | content/renderer/render_thread_impl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h index 59b7c1d..aea1836 100644 --- a/content/renderer/render_thread_impl.h +++ b/content/renderer/render_thread_impl.h @@ -11,6 +11,7 @@ #include "base/memory/memory_pressure_listener.h" #include "base/observer_list.h" +#include "base/process/process_handle.h" #include "base/strings/string16.h" #include "base/timer/timer.h" #include "build/build_config.h" @@ -343,6 +344,11 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread, // Retrieve current gamepad data. void SampleGamepads(WebKit::WebGamepads* data); + // Get the browser process's notion of the renderer process's ID. + // This is the first argument to RenderWidgetHost::FromID. Ideally + // this would be available on all platforms via base::Process. + base::ProcessId renderer_process_id() const; + private: // ChildThread virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; @@ -374,6 +380,7 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread, void OnNetworkStateChanged(bool online); void OnGetAccessibilityTree(); void OnTempCrashWithData(const GURL& data); + void OnSetRendererProcessID(base::ProcessId process_id); void OnSetWebKitSharedTimersSuspended(bool suspend); void OnMemoryPressure( base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); @@ -486,6 +493,8 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread, scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; + base::ProcessId renderer_process_id_; + DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); }; |