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

Side by Side Diff: content/public/browser/devtools_manager_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MANAGER_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/browser/devtools_agent_host.h" 11 #include "content/public/browser/devtools_agent_host.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace base { 14 namespace base {
15 class DictionaryValue; 15 class DictionaryValue;
16 } 16 }
17 17
18 namespace content { 18 namespace content {
19 19
20 class BrowserContext; 20 class BrowserContext;
21 class RenderFrameHost; 21 class RenderFrameHost;
22 22
23 class CONTENT_EXPORT DevToolsManagerDelegate { 23 class CONTENT_EXPORT DevToolsManagerDelegate {
24 public: 24 public:
25 // Opens the inspector for |agent_host|. 25 // Opens the inspector for |agent_host|.
26 virtual void Inspect(DevToolsAgentHost* agent_host); 26 virtual void Inspect(DevToolsAgentHost* agent_host,
27 BrowserContext* context);
27 28
28 virtual void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host, 29 virtual void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host,
29 bool attached); 30 bool attached);
30 31
31 // Returns DevToolsAgentHost type to use for given |host| target. 32 // Returns DevToolsAgentHost type to use for given |host| target.
32 virtual std::string GetTargetType(RenderFrameHost* host); 33 virtual std::string GetTargetType(RenderFrameHost* host);
33 34
34 // Returns DevToolsAgentHost title to use for given |host| target. 35 // Returns DevToolsAgentHost title to use for given |host| target.
35 virtual std::string GetTargetTitle(RenderFrameHost* host); 36 virtual std::string GetTargetTitle(RenderFrameHost* host);
36 37
(...skipping 20 matching lines...) Expand all
57 58
58 // Returns frontend resource data by |path|. 59 // Returns frontend resource data by |path|.
59 virtual std::string GetFrontendResource(const std::string& path); 60 virtual std::string GetFrontendResource(const std::string& path);
60 61
61 virtual ~DevToolsManagerDelegate(); 62 virtual ~DevToolsManagerDelegate();
62 }; 63 };
63 64
64 } // namespace content 65 } // namespace content
65 66
66 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ 67 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698