| Index: content/browser/devtools/devtools_frontend_host_impl.h
|
| diff --git a/content/browser/devtools/devtools_frontend_host_impl.h b/content/browser/devtools/devtools_frontend_host_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9997831c13d0c8dd3822e9fe23e7538e8076435b
|
| --- /dev/null
|
| +++ b/content/browser/devtools/devtools_frontend_host_impl.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright (c) 2012 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_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_
|
| +#define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_
|
| +
|
| +#include "content/public/browser/devtools_frontend_host.h"
|
| +#include "content/public/browser/web_contents_observer.h"
|
| +
|
| +namespace content {
|
| +
|
| +class DevToolsFrontendHostImpl : public DevToolsFrontendHost,
|
| + public WebContentsObserver {
|
| + public:
|
| + DevToolsFrontendHostImpl(WebContents* web_contents,
|
| + DevToolsFrontendHost::Delegate* delegate);
|
| + virtual ~DevToolsFrontendHostImpl();
|
| +
|
| + // DevToolsFrontendHost implementation.
|
| + virtual void DispatchOnDevToolsFrontend(const std::string& message) OVERRIDE;
|
| +
|
| + private:
|
| + // WebContentsObserver overrides.
|
| + virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
|
| + virtual void AboutToNavigateRenderView(
|
| + RenderViewHost* render_view_host) OVERRIDE;
|
| +
|
| + void OnDispatchOnInspectorBackend(const std::string& message);
|
| + void OnDispatchOnEmbedder(const std::string& message);
|
| +
|
| + DevToolsFrontendHost::Delegate* delegate_;
|
| + DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendHostImpl);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_
|
|
|