Refactor management of overview window copy lifetime into a separate class.
[chromium-blink-merge.git] / content / shell / browser / shell_devtools_delegate.h
blobf0da8501fc627f5b7661fc2b9f71bd109a7873f6
1 // Copyright 2013 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_BROWSER_SHELL_DEVTOOLS_DELEGATE_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_DELEGATE_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "content/public/browser/devtools_http_handler_delegate.h"
12 namespace content {
14 class BrowserContext;
15 class DevToolsHttpHandler;
17 class ShellDevToolsDelegate : public DevToolsHttpHandlerDelegate {
18 public:
19 explicit ShellDevToolsDelegate(BrowserContext* browser_context);
20 virtual ~ShellDevToolsDelegate();
22 // Stops http server.
23 void Stop();
25 // DevToolsHttpProtocolHandler::Delegate overrides.
26 virtual std::string GetDiscoveryPageHTML() OVERRIDE;
27 virtual bool BundlesFrontendResources() OVERRIDE;
28 virtual base::FilePath GetDebugFrontendDir() OVERRIDE;
29 virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE;
30 virtual scoped_ptr<DevToolsTarget> CreateNewTarget() OVERRIDE;
31 virtual void EnumerateTargets(TargetCallback callback) OVERRIDE;
32 virtual scoped_ptr<net::StreamListenSocket> CreateSocketForTethering(
33 net::StreamListenSocket::Delegate* delegate,
34 std::string* name) OVERRIDE;
36 DevToolsHttpHandler* devtools_http_handler() {
37 return devtools_http_handler_;
40 private:
41 BrowserContext* browser_context_;
42 DevToolsHttpHandler* devtools_http_handler_;
44 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsDelegate);
47 } // namespace content
49 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_DELEGATE_H_