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 CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_
6 #define CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "content/public/browser/devtools_http_handler_delegate.h"
15 class URLRequestContextGetter
;
20 class DevToolsHttpHandler
;
22 class ShellDevToolsDelegate
: public DevToolsHttpHandlerDelegate
{
24 ShellDevToolsDelegate(int port
, net::URLRequestContextGetter
* context_getter
);
25 virtual ~ShellDevToolsDelegate();
30 // DevToolsHttpProtocolHandler::Delegate overrides.
31 virtual std::string
GetDiscoveryPageHTML() OVERRIDE
;
32 virtual bool BundlesFrontendResources() OVERRIDE
;
33 virtual std::string
GetFrontendResourcesBaseURL() OVERRIDE
;
35 DevToolsHttpHandler
* devtools_http_handler() {
36 return devtools_http_handler_
;
40 net::URLRequestContextGetter
* context_getter_
;
41 DevToolsHttpHandler
* devtools_http_handler_
;
43 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsDelegate
);
46 } // namespace content
48 #endif // CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_