Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / content / browser / devtools / ipc_devtools_agent_host.h
blob496c2d9179a1a7a0416c5383a6b6e4dd506327bb
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_
8 #include "content/browser/devtools/devtools_agent_host_impl.h"
10 namespace IPC {
11 class Message;
14 namespace content {
16 class CONTENT_EXPORT IPCDevToolsAgentHost : public DevToolsAgentHostImpl {
17 public:
18 // DevToolsAgentHostImpl implementation.
19 virtual void Attach() OVERRIDE;
20 virtual void Detach() OVERRIDE;
21 virtual void DispatchProtocolMessage(const std::string& message) OVERRIDE;
22 virtual void InspectElement(int x, int y) OVERRIDE;
24 protected:
25 virtual ~IPCDevToolsAgentHost();
27 void Reattach(const std::string& saved_agent_state);
29 virtual void SendMessageToAgent(IPC::Message* msg) = 0;
30 virtual void OnClientAttached() = 0;
31 virtual void OnClientDetached() = 0;
34 } // namespace content
36 #endif // CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_