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

Side by Side Diff: content/public/browser/devtools_external_agent_proxy_delegate.h

Issue 2361613002: DevTools: untangle device discovery request from the devtools android bridge. (Closed)
Patch Set: make device hosts profile-independent, plump browser context for inspect. Created 4 years, 3 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class BrowserContext;
14 class DevToolsExternalAgentProxy; 15 class DevToolsExternalAgentProxy;
15 16
16 // Describes the interface for sending messages to an external DevTools agent. 17 // Describes the interface for sending messages to an external DevTools agent.
17 class DevToolsExternalAgentProxyDelegate { 18 class DevToolsExternalAgentProxyDelegate {
18 public: 19 public:
19 virtual ~DevToolsExternalAgentProxyDelegate() {} 20 virtual ~DevToolsExternalAgentProxyDelegate() {}
20 21
21 // Informs the agent that a client host has attached. 22 // Informs the agent that a client host has attached.
22 virtual void Attach(DevToolsExternalAgentProxy* proxy) = 0; 23 virtual void Attach(DevToolsExternalAgentProxy* proxy) = 0;
23 24
(...skipping 12 matching lines...) Expand all
36 // Returns url associated with agent host. 37 // Returns url associated with agent host.
37 virtual GURL GetURL() = 0; 38 virtual GURL GetURL() = 0;
38 39
39 // Returns the favicon url for this agent host. 40 // Returns the favicon url for this agent host.
40 virtual GURL GetFaviconURL() = 0; 41 virtual GURL GetFaviconURL() = 0;
41 42
42 // Activates agent host. 43 // Activates agent host.
43 virtual bool Activate() = 0; 44 virtual bool Activate() = 0;
44 45
45 // Initiates external agent host inspection. 46 // Initiates external agent host inspection.
46 virtual bool Inspect() = 0; 47 virtual bool Inspect(BrowserContext* context) = 0;
47 48
48 // Reloads agent host. 49 // Reloads agent host.
49 virtual void Reload() = 0; 50 virtual void Reload() = 0;
50 51
51 // Reloads agent host. 52 // Reloads agent host.
52 virtual bool Close() = 0; 53 virtual bool Close() = 0;
53 54
54 // Sends a message to the agent. 55 // Sends a message to the agent.
55 virtual void SendMessageToBackend(const std::string& message) = 0; 56 virtual void SendMessageToBackend(const std::string& message) = 0;
56 }; 57 };
57 58
58 } // namespace content 59 } // namespace content
59 60
60 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_ 61 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698