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