summaryrefslogtreecommitdiffstats
path: root/content/browser/devtools/devtools_agent_host_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/devtools/devtools_agent_host_impl.h')
-rw-r--r--content/browser/devtools/devtools_agent_host_impl.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/content/browser/devtools/devtools_agent_host_impl.h b/content/browser/devtools/devtools_agent_host_impl.h
index 698bfe9..a09c9eb 100644
--- a/content/browser/devtools/devtools_agent_host_impl.h
+++ b/content/browser/devtools/devtools_agent_host_impl.h
@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "content/common/content_export.h"
+#include "content/common/devtools_messages.h"
#include "content/public/browser/devtools_agent_host.h"
namespace IPC {
@@ -29,9 +30,6 @@ class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost {
// Informs the hosted agent that a client host has detached.
virtual void Detach() = 0;
- // Sends a message to the agent.
- bool DispatchProtocolMessage(const std::string& message) override;
-
// Opens the inspector for this host.
void Inspect(BrowserContext* browser_context);
@@ -45,16 +43,19 @@ class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost {
WebContents* GetWebContents() override;
void DisconnectWebContents() override;
void ConnectWebContents(WebContents* wc) override;
+ bool DispatchProtocolMessage(const std::string& message) override;
protected:
DevToolsAgentHostImpl();
~DevToolsAgentHostImpl() override;
scoped_ptr<DevToolsProtocolHandler> protocol_handler_;
+ std::string state_cookie_;
void set_handle_all_protocol_commands() { handle_all_commands_ = true; }
void HostClosed();
void SendMessageToClient(const std::string& message);
+ void ProcessChunkedMessageFromAgent(const DevToolsMessageChunk& chunk);
static void NotifyCallbacks(DevToolsAgentHostImpl* agent_host, bool attached);
private:
@@ -63,6 +64,8 @@ class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost {
const std::string id_;
DevToolsAgentHostClient* client_;
bool handle_all_commands_;
+ std::string message_buffer_;
+ uint32 message_buffer_size_;
};
} // namespace content