diff options
Diffstat (limited to 'chrome/common/child_thread.h')
-rw-r--r-- | chrome/common/child_thread.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/child_thread.h b/chrome/common/child_thread.h index c499cb5..66fcc09 100644 --- a/chrome/common/child_thread.h +++ b/chrome/common/child_thread.h @@ -41,6 +41,9 @@ class ChildThread : public IPC::Channel::Listener, // Overrides the channel name. Used for --single-process mode. void SetChannelName(const std::wstring& name) { channel_name_ = name; } + // Called when the process refcount is 0. + void OnProcessFinalRelease(); + protected: // The required stack size if V8 runs on a thread. static const size_t kV8StackSize; @@ -77,6 +80,11 @@ class ChildThread : public IPC::Channel::Listener, // NOTE: this object lives on the owner thread. scoped_ptr<ResourceDispatcher> resource_dispatcher_; + // If true, checks with the browser process before shutdown. This avoids race + // conditions if the process refcount is 0 but there's an IPC message inflight + // that would addref it. + bool check_with_browser_before_shutdown_; + DISALLOW_EVIL_CONSTRUCTORS(ChildThread); }; |