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

Side by Side Diff: content/shell/browser/shell_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_SHELL_BROWSER_SHELL_DEVTOOLS_MANAGER_DELEGATE_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_MANAGER_DELEGATE_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_MANAGER_DELEGATE_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_MANAGER_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "content/public/browser/devtools_manager_delegate.h" 10 #include "content/public/browser/devtools_manager_delegate.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class BrowserContext; 14 class BrowserContext;
15 15
16 class ShellDevToolsManagerDelegate : public DevToolsManagerDelegate { 16 class ShellDevToolsManagerDelegate : public DevToolsManagerDelegate {
17 public: 17 public:
18 static void StartHttpHandler(BrowserContext* browser_context); 18 static void StartHttpHandler(BrowserContext* browser_context);
19 static void StopHttpHandler(); 19 static void StopHttpHandler();
20 static int GetHttpHandlerPort(); 20 static int GetHttpHandlerPort();
21 21
22 explicit ShellDevToolsManagerDelegate(BrowserContext* browser_context); 22 explicit ShellDevToolsManagerDelegate(BrowserContext* browser_context);
23 ~ShellDevToolsManagerDelegate() override; 23 ~ShellDevToolsManagerDelegate() override;
24 24
25 // DevToolsManagerDelegate implementation. 25 // DevToolsManagerDelegate implementation.
26 void Inspect(DevToolsAgentHost* agent_host) override {}
27 void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host,
28 bool attached) override {}
29 scoped_refptr<DevToolsAgentHost> CreateNewTarget(const GURL& url) override; 26 scoped_refptr<DevToolsAgentHost> CreateNewTarget(const GURL& url) override;
30 std::string GetDiscoveryPageHTML() override; 27 std::string GetDiscoveryPageHTML() override;
31 std::string GetFrontendResource(const std::string& path) override; 28 std::string GetFrontendResource(const std::string& path) override;
32 29
33 private: 30 private:
34 BrowserContext* browser_context_; 31 BrowserContext* browser_context_;
35 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsManagerDelegate); 32 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsManagerDelegate);
36 }; 33 };
37 34
38 } // namespace content 35 } // namespace content
39 36
40 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_MANAGER_DELEGATE_H_ 37 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698