diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-12 13:03:51 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-12 13:03:51 +0000 |
commit | 097e38421957bcdf84a79fbed193570fbb2e647e (patch) | |
tree | 088062f435d940d67b06a1b7a35a5b0850cb9243 /webkit/glue/webdevtoolsagent.h | |
parent | 31d58b18c3ae0bc157eab12371f5777f3340cabc (diff) | |
download | chromium_src-097e38421957bcdf84a79fbed193570fbb2e647e.zip chromium_src-097e38421957bcdf84a79fbed193570fbb2e647e.tar.gz chromium_src-097e38421957bcdf84a79fbed193570fbb2e647e.tar.bz2 |
Initial WebDevToolsAgent implementation contains two agent objects: Dom agent
and Net agent.
Dom agent provides API for querying for DOM nodes and receiving notifications
on
Dom updates. It has some logic in and this logic is covered with the unit
tests.
Net agent pushes an initial set of request/response-related events to the
client. It is to be filled with more data later on. It currently caches loaders
for all the requests which is Ok for the case when this agent is turned ON (at
least for now).
Note that this code is not yet wired to the dev tools agent (this is by design).
The plan is to start enrolling the dev tools agent glue that connects these
sub-agents with the IPC transport once this CL is in.
Original CL: http://codereview.chromium.org/41008/show
Review URL: http://codereview.chromium.org/43128
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webdevtoolsagent.h')
-rw-r--r-- | webkit/glue/webdevtoolsagent.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/webkit/glue/webdevtoolsagent.h b/webkit/glue/webdevtoolsagent.h new file mode 100644 index 0000000..c6b7650 --- /dev/null +++ b/webkit/glue/webdevtoolsagent.h @@ -0,0 +1,23 @@ +// 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 WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ +#define WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ + +#include <string> +#include "base/basictypes.h" + +// WebDevToolsAgent represents DevTools agent sitting in the Glue. It provides +// direct and delegate Apis to the host. +class WebDevToolsAgent { + public: + WebDevToolsAgent() {} + virtual ~WebDevToolsAgent() {} + + virtual void DispatchMessageFromClient(const std::string& raw_msg) = 0; + private: + DISALLOW_COPY_AND_ASSIGN(WebDevToolsAgent); +}; + +#endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ |