diff options
Diffstat (limited to 'chrome/browser/debugger/devtools_remote.h')
-rw-r--r-- | chrome/browser/debugger/devtools_remote.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/debugger/devtools_remote.h b/chrome/browser/debugger/devtools_remote.h index d5664a5..713df3d 100644 --- a/chrome/browser/debugger/devtools_remote.h +++ b/chrome/browser/debugger/devtools_remote.h @@ -16,12 +16,16 @@ class DevToolsRemoteListener : public base::RefCountedThreadSafe<DevToolsRemoteListener> { public: DevToolsRemoteListener() {} - virtual ~DevToolsRemoteListener() {} virtual void HandleMessage(const DevToolsRemoteMessage& message) = 0; // This method is invoked on the UI thread whenever the debugger connection // has been lost. virtual void OnConnectionLost() = 0; + protected: + friend class base::RefCountedThreadSafe<DevToolsRemoteListener>; + + virtual ~DevToolsRemoteListener() {} + private: DISALLOW_COPY_AND_ASSIGN(DevToolsRemoteListener); }; |