Change next_proto member type.
[chromium-blink-merge.git] / content / browser / devtools / ipc_devtools_agent_host.h
bloba952588f758fd0f49041160ee840ab2f50d54f6f
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 void Attach() override;
20 void Detach() override;
21 void DispatchProtocolMessage(const std::string& message) override;
22 void InspectElement(int x, int y) override;
24 protected:
25 IPCDevToolsAgentHost();
26 ~IPCDevToolsAgentHost() override;
28 void Reattach(const std::string& saved_agent_state);
29 void ProcessChunkedMessageFromAgent(const std::string& message,
30 uint32 total_size);
32 virtual void SendMessageToAgent(IPC::Message* msg) = 0;
33 virtual void OnClientAttached() = 0;
34 virtual void OnClientDetached() = 0;
36 private:
37 std::string message_buffer_;
38 uint32 message_buffer_size_;
41 } // namespace content
43 #endif // CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_