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 <string> | 8 #include <string> |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 // Returns DevToolsAgentHost title to use for given |host| target. | 35 // Returns DevToolsAgentHost title to use for given |host| target. |
36 virtual std::string GetTargetTitle(RenderFrameHost* host) = 0; | 36 virtual std::string GetTargetTitle(RenderFrameHost* host) = 0; |
37 | 37 |
38 // Creates new inspectable target given the |url|. | 38 // Creates new inspectable target given the |url|. |
39 virtual scoped_refptr<DevToolsAgentHost> CreateNewTarget(const GURL& url) = 0; | 39 virtual scoped_refptr<DevToolsAgentHost> CreateNewTarget(const GURL& url) = 0; |
40 | 40 |
41 // Result ownership is passed to the caller. | 41 // Result ownership is passed to the caller. |
42 virtual base::DictionaryValue* HandleCommand( | 42 virtual base::DictionaryValue* HandleCommand( |
43 DevToolsAgentHost* agent_host, | 43 DevToolsAgentHost* agent_host, |
44 base::DictionaryValue* command) = 0; | 44 base::DictionaryValue* command) = 0; |
| 45 |
| 46 // Should return discovery page HTML that should list available tabs |
| 47 // and provide attach links. |
| 48 virtual std::string GetDiscoveryPageHTML() = 0; |
| 49 |
| 50 // Returns frontend resource data by |path|. |
| 51 virtual std::string GetFrontendResource(const std::string& path) = 0; |
45 }; | 52 }; |
46 | 53 |
47 } // namespace content | 54 } // namespace content |
48 | 55 |
49 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ | 56 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ |
OLD | NEW |