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

Side by Side Diff: content/browser/debugger/devtools_agent_host.h

Issue 11630004: DevTools: rename debugger/ to devtools/, move DevTools files into content/renderer/devtools. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: For landing Created 8 years 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
« no previous file with comments | « content/browser/debugger/OWNERS ('k') | content/browser/debugger/devtools_agent_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 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_DEBUGGER_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_
7
8 #include <string>
9
10 #include "content/common/content_export.h"
11 #include "content/public/common/console_message_level.h"
12
13 namespace IPC {
14 class Message;
15 }
16
17 namespace content {
18
19 // Describes interface for managing devtools agents from the browser process.
20 class CONTENT_EXPORT DevToolsAgentHost {
21 public:
22 class CONTENT_EXPORT CloseListener {
23 public:
24 virtual void AgentHostClosing(DevToolsAgentHost*) = 0;
25 protected:
26 virtual ~CloseListener() {}
27 };
28
29 // Sends the message to the devtools agent hosted by this object.
30 void Attach();
31 void Reattach(const std::string& saved_agent_state);
32 void Detach();
33 void DipatchOnInspectorBackend(const std::string& message);
34 void InspectElement(int x, int y);
35 void AddMessageToConsole(ConsoleMessageLevel level,
36 const std::string& message);
37
38 virtual int GetRenderProcessId() = 0;
39
40 void set_close_listener(CloseListener* listener) {
41 close_listener_ = listener;
42 }
43
44 protected:
45 DevToolsAgentHost();
46 virtual ~DevToolsAgentHost() {}
47
48 virtual void SendMessageToAgent(IPC::Message* msg) = 0;
49 virtual void NotifyClientAttaching() = 0;
50 virtual void NotifyClientDetaching() = 0;
51
52 void NotifyCloseListener();
53
54 CloseListener* close_listener_;
55 };
56
57 } // namespace content
58
59 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/debugger/OWNERS ('k') | content/browser/debugger/devtools_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698