Chromium Code Reviews| 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 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 44 // Creates new inspectable target given the |url|. | 44 // Creates new inspectable target given the |url|. |
| 45 virtual scoped_refptr<DevToolsAgentHost> CreateNewTarget(const GURL& url); | 45 virtual scoped_refptr<DevToolsAgentHost> CreateNewTarget(const GURL& url); |
| 46 | 46 |
| 47 // Result ownership is passed to the caller. | 47 // Result ownership is passed to the caller. |
| 48 virtual base::DictionaryValue* HandleCommand( | 48 virtual base::DictionaryValue* HandleCommand( |
| 49 DevToolsAgentHost* agent_host, | 49 DevToolsAgentHost* agent_host, |
| 50 base::DictionaryValue* command); | 50 base::DictionaryValue* command); |
| 51 | 51 |
| 52 using CommandCallback = | 52 using CommandCallback = |
| 53 base::Callback<void(std::unique_ptr<base::DictionaryValue> response)>; | 53 base::Callback<void(std::unique_ptr<base::DictionaryValue> response)>; |
| 54 virtual bool HandleAsyncCommand(DevToolsAgentHost* agent_host, | 54 virtual bool HandleAsyncCommand(DevToolsAgentHost* agent_host, |
|
Lei Zhang
2017/03/29 05:30:15
Add comment to explain what this does.
jzfeng
2017/03/30 03:04:56
Done.
| |
| 55 base::DictionaryValue* command, | 55 base::DictionaryValue* command, |
| 56 CommandCallback callback); | 56 const CommandCallback& callback); |
|
Lei Zhang
2017/03/29 05:30:15
Blank line after.
jzfeng
2017/03/30 03:04:56
Done.
| |
| 57 // Should return discovery page HTML that should list available tabs | 57 // Should return discovery page HTML that should list available tabs |
| 58 // and provide attach links. | 58 // and provide attach links. |
| 59 virtual std::string GetDiscoveryPageHTML(); | 59 virtual std::string GetDiscoveryPageHTML(); |
| 60 | 60 |
| 61 // Returns frontend resource data by |path|. | 61 // Returns frontend resource data by |path|. |
| 62 virtual std::string GetFrontendResource(const std::string& path); | 62 virtual std::string GetFrontendResource(const std::string& path); |
| 63 | 63 |
| 64 virtual ~DevToolsManagerDelegate(); | 64 virtual ~DevToolsManagerDelegate(); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace content | 67 } // namespace content |
| 68 | 68 |
| 69 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ | 69 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ |
| OLD | NEW |