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

Side by Side Diff: content/public/browser/devtools/devtools_manager.h

Issue 8549022: Define DevTools content API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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_PUBLIC_BROWSER_DEVTOOLS_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_H_
7 #pragma once
8
9 #include "content/common/content_export.h"
10
11 class DevToolsAgentHost;
12 class DevToolsClientHost;
13 class TabContents;
14
15 namespace IPC {
16 class Message;
17 }
18
19 namespace content {
20
21 class CONTENT_EXPORT DevToolsManager {
22 public:
23 static DevToolsManager* GetInstance();
24
25 virtual bool ForwardToDevToolsAgent(DevToolsClientHost* from,
26 const IPC::Message& message) = 0;
27
28 // Invoked when a tab is replaced by another tab. This is triggered by
29 // TabStripModel::ReplaceTabContentsAt.
30 virtual void TabReplaced(TabContents* old_tab, TabContents* new_tab) = 0;
31
32 // Closes all open developer tools windows.
33 virtual void CloseAllClientHosts() = 0;
34
35 virtual DevToolsClientHost* GetDevToolsClientHostFor(
36 DevToolsAgentHost* agent_host) = 0;
37
38 // Registers new DevToolsClientHost for inspected |agent_host|. There must be
39 // no other DevToolsClientHosts registered for the |agent_host| at the moment.
40 virtual void RegisterDevToolsClientHostFor(
41 DevToolsAgentHost* agent_host,
42 DevToolsClientHost* client_host) = 0;
43 virtual void UnregisterDevToolsClientHostFor(
44 DevToolsAgentHost* agent_host) = 0;
45
46 virtual void AttachClientHost(int client_host_cookie,
47 DevToolsAgentHost* to_agent) = 0;
48 virtual int DetachClientHost(DevToolsAgentHost* from_agent) = 0;
49 };
50
51 } // namespace content
52
53 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698