OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_HTTP_HANDLER_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 class GURL; |
| 12 |
11 namespace content { | 13 namespace content { |
12 | 14 |
13 class WebContents; | 15 class WebContents; |
14 | 16 |
15 class DevToolsHttpHandlerDelegate { | 17 class DevToolsHttpHandlerDelegate { |
16 public: | 18 public: |
17 virtual ~DevToolsHttpHandlerDelegate() {} | 19 virtual ~DevToolsHttpHandlerDelegate() {} |
18 | 20 |
19 // Should return discovery page HTML that should list available tabs | 21 // Should return discovery page HTML that should list available tabs |
20 // and provide attach links. Called on the IO thread. | 22 // and provide attach links. Called on the IO thread. |
21 virtual std::string GetDiscoveryPageHTML() = 0; | 23 virtual std::string GetDiscoveryPageHTML() = 0; |
22 | 24 |
23 // Returns true if and only if frontend resources are bundled. | 25 // Returns true if and only if frontend resources are bundled. |
24 virtual bool BundlesFrontendResources() = 0; | 26 virtual bool BundlesFrontendResources() = 0; |
25 | 27 |
26 // Returns URL that front-end files are available at, empty string if | 28 // Returns URL that front-end files are available at, empty string if |
27 // no internal server is available. | 29 // no internal server is available. |
28 virtual std::string GetFrontendResourcesBaseURL() = 0; | 30 virtual std::string GetFrontendResourcesBaseURL() = 0; |
| 31 |
| 32 // Get a thumbnail for a given page. Returns non-empty string iff we have the |
| 33 // thumbnail. |
| 34 virtual std::string GetPageThumbnailData(const GURL& url) = 0; |
29 }; | 35 }; |
30 | 36 |
31 } // namespace content | 37 } // namespace content |
32 | 38 |
33 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ | 39 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ |
OLD | NEW |