| 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 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 virtual ~DevToolsHttpHandlerDelegate() {} | 26 virtual ~DevToolsHttpHandlerDelegate() {} |
| 27 | 27 |
| 28 // Should return discovery page HTML that should list available tabs | 28 // Should return discovery page HTML that should list available tabs |
| 29 // and provide attach links. | 29 // and provide attach links. |
| 30 virtual std::string GetDiscoveryPageHTML() = 0; | 30 virtual std::string GetDiscoveryPageHTML() = 0; |
| 31 | 31 |
| 32 // Returns true if and only if frontend resources are bundled. | 32 // Returns true if and only if frontend resources are bundled. |
| 33 virtual bool BundlesFrontendResources() = 0; | 33 virtual bool BundlesFrontendResources() = 0; |
| 34 | 34 |
| 35 // Returns path to the front-end files on the local filesystem for debugging. | 35 // Returns path to the front-end files on the local filesystem for debugging. |
| 36 virtual FilePath GetDebugFrontendDir() = 0; | 36 virtual base::FilePath GetDebugFrontendDir() = 0; |
| 37 | 37 |
| 38 // Get a thumbnail for a given page. Returns non-empty string iff we have the | 38 // Get a thumbnail for a given page. Returns non-empty string iff we have the |
| 39 // thumbnail. | 39 // thumbnail. |
| 40 virtual std::string GetPageThumbnailData(const GURL& url) = 0; | 40 virtual std::string GetPageThumbnailData(const GURL& url) = 0; |
| 41 | 41 |
| 42 // Creates new inspectable target and returns its render view host. | 42 // Creates new inspectable target and returns its render view host. |
| 43 virtual RenderViewHost* CreateNewTarget() = 0; | 43 virtual RenderViewHost* CreateNewTarget() = 0; |
| 44 | 44 |
| 45 // Returns the type of the target. | 45 // Returns the type of the target. |
| 46 virtual TargetType GetTargetType(RenderViewHost*) = 0; | 46 virtual TargetType GetTargetType(RenderViewHost*) = 0; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace content | 49 } // namespace content |
| 50 | 50 |
| 51 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ | 51 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ |
| OLD | NEW |