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

Side by Side Diff: chromecast/browser/devtools/cast_devtools_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 CHROMECAST_BROWSER_DEVTOOLS_CAST_DEVTOOLS_DELEGATE_H_ 5 #ifndef CHROMECAST_BROWSER_DEVTOOLS_CAST_DEVTOOLS_DELEGATE_H_
6 #define CHROMECAST_BROWSER_DEVTOOLS_CAST_DEVTOOLS_DELEGATE_H_ 6 #define CHROMECAST_BROWSER_DEVTOOLS_CAST_DEVTOOLS_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/devtools_manager_delegate.h" 9 #include "content/public/browser/devtools_manager_delegate.h"
10 10
11 namespace content { 11 namespace content {
12 class DevToolsAgentHost; 12 class DevToolsAgentHost;
13 } 13 }
14 14
15 namespace chromecast { 15 namespace chromecast {
16 namespace shell { 16 namespace shell {
17 17
18 class CastDevToolsDelegate : 18 class CastDevToolsDelegate :
19 public content::DevToolsManagerDelegate { 19 public content::DevToolsManagerDelegate {
20 public: 20 public:
21 CastDevToolsDelegate(); 21 CastDevToolsDelegate();
22 ~CastDevToolsDelegate() override; 22 ~CastDevToolsDelegate() override;
23 23
24 // content::DevToolsManagerDelegate implementation. 24 // content::DevToolsManagerDelegate implementation.
25 void Inspect(content::DevToolsAgentHost* agent_host) override;
26 void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host,
27 bool attached) override;
28 std::string GetDiscoveryPageHTML() override; 25 std::string GetDiscoveryPageHTML() override;
29 26
30 private: 27 private:
31 DISALLOW_COPY_AND_ASSIGN(CastDevToolsDelegate); 28 DISALLOW_COPY_AND_ASSIGN(CastDevToolsDelegate);
32 }; 29 };
33 30
34 } // namespace shell 31 } // namespace shell
35 } // namespace chromecast 32 } // namespace chromecast
36 33
37 #endif // CHROMECAST_BROWSER_DEVTOOLS_CAST_DEVTOOLS_DELEGATE_H_ 34 #endif // CHROMECAST_BROWSER_DEVTOOLS_CAST_DEVTOOLS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698