| Index: chromecast/shell/browser/devtools/cast_dev_tools_delegate.h
|
| diff --git a/chromecast/shell/browser/devtools/cast_dev_tools_delegate.h b/chromecast/shell/browser/devtools/cast_dev_tools_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e41e1a85bd0811b868378377a39155a34968abe7
|
| --- /dev/null
|
| +++ b/chromecast/shell/browser/devtools/cast_dev_tools_delegate.h
|
| @@ -0,0 +1,42 @@
|
| +// Copyright 2014 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 CHROMECAST_SHELL_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_
|
| +#define CHROMECAST_SHELL_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_
|
| +
|
| +#include "content/public/browser/devtools_http_handler_delegate.h"
|
| +#include "net/socket/stream_listen_socket.h"
|
| +
|
| +namespace base {
|
| +class FilePath;
|
| +}
|
| +
|
| +namespace chromecast {
|
| +namespace shell {
|
| +
|
| +class CastDevToolsDelegate : public content::DevToolsHttpHandlerDelegate {
|
| + public:
|
| + CastDevToolsDelegate();
|
| + virtual ~CastDevToolsDelegate();
|
| +
|
| + // DevToolsHttpHandlerDelegate implementation.
|
| + virtual std::string GetDiscoveryPageHTML() OVERRIDE;
|
| + virtual bool BundlesFrontendResources() OVERRIDE;
|
| + virtual base::FilePath GetDebugFrontendDir() OVERRIDE;
|
| + virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE;
|
| + virtual scoped_ptr<content::DevToolsTarget> CreateNewTarget(
|
| + const GURL& url) OVERRIDE;
|
| + virtual void EnumerateTargets(TargetCallback callback) OVERRIDE;
|
| + virtual scoped_ptr<net::StreamListenSocket> CreateSocketForTethering(
|
| + net::StreamListenSocket::Delegate* delegate,
|
| + std::string* name) OVERRIDE;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(CastDevToolsDelegate);
|
| +};
|
| +
|
| +} // namespace shell
|
| +} // namespace chromecast
|
| +
|
| +#endif // CHROMECAST_SHELL_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_
|
|
|