OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_MANAGER_DELEGATE_H_ | |
6 #define ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_MANAGER_DELEGATE_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "content/public/browser/devtools_manager_delegate.h" | |
10 | |
11 namespace android_webview { | |
12 | |
13 // TODO(dgozman): remove this class after componentization of devtools_discovery | |
14 // is finished. | |
15 class AwDevToolsManagerDelegate : public content::DevToolsManagerDelegate { | |
16 public: | |
17 AwDevToolsManagerDelegate(); | |
18 ~AwDevToolsManagerDelegate() override; | |
19 | |
20 // content::DevToolsManagerDelegate implementation. | |
21 void Inspect(content::BrowserContext* browser_context, | |
22 content::DevToolsAgentHost* agent_host) override {} | |
23 void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host, | |
24 bool attached) override {} | |
25 base::DictionaryValue* HandleCommand( | |
26 content::DevToolsAgentHost* agent_host, | |
27 base::DictionaryValue* command_dict) override; | |
28 scoped_ptr<content::DevToolsTarget> CreateNewTarget(const GURL& url) override; | |
29 void EnumerateTargets(TargetCallback callback) override; | |
30 std::string GetPageThumbnailData(const GURL& url) override; | |
31 | |
32 private: | |
33 DISALLOW_COPY_AND_ASSIGN(AwDevToolsManagerDelegate); | |
34 }; | |
35 | |
36 } // namespace android_webview | |
37 | |
38 #endif // ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_MANAGER_DELEGATE_H_ | |
OLD | NEW |