OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <string> |
| 10 #include <vector> |
| 11 |
| 12 class TabContents; |
| 13 |
| 14 namespace net { |
| 15 class URLRequestContext; |
| 16 } |
| 17 |
| 18 namespace content { |
| 19 |
| 20 class DevToolsHttpHandlerDelegate { |
| 21 public: |
| 22 typedef std::vector<TabContents*> InspectableTabs; |
| 23 virtual ~DevToolsHttpHandlerDelegate() {} |
| 24 |
| 25 // Should return the list of inspectable tabs. Called on the UI thread. |
| 26 virtual InspectableTabs GetInspectableTabs() = 0; |
| 27 |
| 28 // Should return discovery page HTML that should list available tabs |
| 29 // and provide attach links. Called on the IO thread. |
| 30 virtual std::string GetDiscoveryPageHTML() = 0; |
| 31 |
| 32 // Should return URL request context for issuing requests against devtools |
| 33 // webui or NULL if no context is available. Called on the IO thread. |
| 34 virtual net::URLRequestContext* GetURLRequestContext() = 0; |
| 35 }; |
| 36 |
| 37 } // namespace content |
| 38 |
| 39 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ |
OLD | NEW |