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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_DEVTOOLS_BROWSER_LIST_TABCONTENTS_PROVIDER_H_
6 #define CHROME_BROWSER_DEVTOOLS_BROWSER_LIST_TABCONTENTS_PROVIDER_H_
11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h"
13 #include "chrome/browser/ui/host_desktop.h"
14 #include "content/public/browser/devtools_http_handler_delegate.h"
16 class BrowserListTabContentsProvider
17 : public content::DevToolsHttpHandlerDelegate
{
19 explicit BrowserListTabContentsProvider(
20 chrome::HostDesktopType host_desktop_type
);
21 virtual ~BrowserListTabContentsProvider();
23 // DevToolsHttpProtocolHandler::Delegate overrides.
24 virtual std::string
GetDiscoveryPageHTML() OVERRIDE
;
25 virtual bool BundlesFrontendResources() OVERRIDE
;
26 virtual base::FilePath
GetDebugFrontendDir() OVERRIDE
;
27 virtual std::string
GetPageThumbnailData(const GURL
& url
) OVERRIDE
;
28 virtual scoped_ptr
<content::DevToolsTarget
> CreateNewTarget(
29 const GURL
& url
) OVERRIDE
;
30 virtual void EnumerateTargets(TargetCallback callback
) OVERRIDE
;
31 virtual scoped_ptr
<net::StreamListenSocket
> CreateSocketForTethering(
32 net::StreamListenSocket::Delegate
* delegate
,
33 std::string
* name
) OVERRIDE
;
36 chrome::HostDesktopType host_desktop_type_
;
37 DISALLOW_COPY_AND_ASSIGN(BrowserListTabContentsProvider
);
40 #endif // CHROME_BROWSER_DEVTOOLS_BROWSER_LIST_TABCONTENTS_PROVIDER_H_