diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-10 13:52:30 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-10 13:52:30 +0000 |
commit | 98f5f88b53f774cee109503b0225a5bfb9deb550 (patch) | |
tree | 32af75ae9784181c85e577327d8020192658c519 /chrome/browser/debugger/devtools_remote.h | |
parent | 198d8d43c5ccff8d0d48bbd3fef31917aa9d3db6 (diff) | |
download | chromium_src-98f5f88b53f774cee109503b0225a5bfb9deb550.zip chromium_src-98f5f88b53f774cee109503b0225a5bfb9deb550.tar.gz chromium_src-98f5f88b53f774cee109503b0225a5bfb9deb550.tar.bz2 |
DevTools. Add V8 Application Remote Debugging Protocol support by apavlov. Original CL: http://codereview.chromium.org/56109
Review URL: http://codereview.chromium.org/66031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13502 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/devtools_remote.h')
-rw-r--r-- | chrome/browser/debugger/devtools_remote.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/chrome/browser/debugger/devtools_remote.h b/chrome/browser/debugger/devtools_remote.h new file mode 100644 index 0000000..c475030 --- /dev/null +++ b/chrome/browser/debugger/devtools_remote.h @@ -0,0 +1,34 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_REMOTE_H_ +#define CHROME_BROWSER_DEBUGGER_DEVTOOLS_REMOTE_H_ + +#include "base/basictypes.h" +#include "base/ref_counted.h" + +class DevToolsRemoteMessage; + +// This interface should be implemented by a class that wants to handle +// DevToolsRemoteMessages dispatched by some entity. It must extend +class DevToolsRemoteListener + : public base::RefCountedThreadSafe<DevToolsRemoteListener> { + public: + DevToolsRemoteListener() {} + virtual ~DevToolsRemoteListener() {} + virtual void HandleMessage(const DevToolsRemoteMessage& message) = 0; + + private: + DISALLOW_COPY_AND_ASSIGN(DevToolsRemoteListener); +}; + +// Interface exposed by DevToolsProtocolHandler to receive reply messages +// from registered tools. +class OutboundSocketDelegate { + public: + virtual ~OutboundSocketDelegate() {} + virtual void Send(const DevToolsRemoteMessage& message) = 0; +}; + +#endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_REMOTE_H_ |