summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger/devtools_manager.h
diff options
context:
space:
mode:
authoryurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-17 12:05:48 +0000
committeryurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-17 12:05:48 +0000
commitf85d541dfff6b40ede739d3c0c3094ba420bafa2 (patch)
tree05fdc391e65feef0bb971230da16e5cc65ed1d51 /chrome/browser/debugger/devtools_manager.h
parentea29a8a5bebf9c4fcf2448c6e4ddeafa62eba1d8 (diff)
downloadchromium_src-f85d541dfff6b40ede739d3c0c3094ba420bafa2.zip
chromium_src-f85d541dfff6b40ede739d3c0c3094ba420bafa2.tar.gz
chromium_src-f85d541dfff6b40ede739d3c0c3094ba420bafa2.tar.bz2
Initial unit tests implementation.
Review URL: http://codereview.chromium.org/42233 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11855 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/devtools_manager.h')
-rw-r--r--chrome/browser/debugger/devtools_manager.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/chrome/browser/debugger/devtools_manager.h b/chrome/browser/debugger/devtools_manager.h
index ebacc5e..ce6ee73 100644
--- a/chrome/browser/debugger/devtools_manager.h
+++ b/chrome/browser/debugger/devtools_manager.h
@@ -15,8 +15,10 @@ namespace IPC {
class Message;
}
+class DevToolsInstanceDescriptor;
class DevToolsInstanceDescriptorImpl;
class DevToolsWindow;
+class DevToolsWindowFactory;
class NavigationController;
class NotificationRegistrar;
class RenderViewHost;
@@ -26,7 +28,9 @@ class WebContents;
// messages between developer tools clients and agents.
class DevToolsManager : public NotificationObserver {
public:
- DevToolsManager();
+ // If the factory is NULL, this will create DevToolsWindow objects using
+ // DevToolsWindow::Create static method.
+ DevToolsManager(DevToolsWindowFactory* factory);
virtual ~DevToolsManager();
// Opend developer tools window for |web_contents|. If there is already
@@ -43,6 +47,11 @@ class DevToolsManager : public NotificationObserver {
const IPC::Message& message);
private:
+ // Creates a DevToolsWindow using devtools_window_factory_ or by calling
+ // DevToolsWindow::Create, if the factory is NULL. All DevToolsWindows should
+ // be created by means of this method.
+ DevToolsWindow* CreateDevToolsWindow(DevToolsInstanceDescriptor* descriptor);
+
// NotificationObserver override.
virtual void Observe(NotificationType type,
const NotificationSource& source,
@@ -72,6 +81,7 @@ class DevToolsManager : public NotificationObserver {
typedef std::map<NavigationController*,
DevToolsInstanceDescriptorImpl*> DescriptorMap;
DescriptorMap navcontroller_to_descriptor_;
+ DevToolsWindowFactory* devtools_window_factory_;
DISALLOW_COPY_AND_ASSIGN(DevToolsManager);
};