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