Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: content/browser/devtools/ipc_devtools_agent_host.h

Issue 1155703003: [DevTools] Inline IPCDevToolsAgentHost into subclasses. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_
7
8 #include "content/browser/devtools/devtools_agent_host_impl.h"
9 #include "content/common/devtools_messages.h"
10
11 namespace IPC {
12 class Message;
13 }
14
15 namespace content {
16
17 class CONTENT_EXPORT IPCDevToolsAgentHost : public DevToolsAgentHostImpl {
18 public:
19 // DevToolsAgentHostImpl implementation.
20 void Attach() override;
21 void Detach() override;
22 bool DispatchProtocolMessage(const std::string& message) override;
23 void InspectElement(int x, int y) override;
24
25 protected:
26 IPCDevToolsAgentHost();
27 ~IPCDevToolsAgentHost() override;
28
29 void Reattach();
30 void ProcessChunkedMessageFromAgent(const DevToolsMessageChunk& chunk);
31
32 virtual void SendMessageToAgent(IPC::Message* msg) = 0;
33 virtual void OnClientAttached(bool reattached) = 0;
34 virtual void OnClientDetached() = 0;
35
36 private:
37 std::string message_buffer_;
38 uint32 message_buffer_size_;
39 std::string state_cookie_;
40 };
41
42 } // namespace content
43
44 #endif // CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_agent_host_impl.cc ('k') | content/browser/devtools/ipc_devtools_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698