ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / content / browser / devtools / devtools_frontend_host_impl.h
blobee616e525d49f4575314a9ef3603f0e8d2012988
1 // Copyright 2014 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_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_
8 #include "content/public/browser/devtools_frontend_host.h"
9 #include "content/public/browser/web_contents_observer.h"
11 namespace content {
13 class DevToolsFrontendHostImpl : public DevToolsFrontendHost,
14 public WebContentsObserver {
15 public:
16 DevToolsFrontendHostImpl(RenderFrameHost* frontend_main_frame,
17 DevToolsFrontendHost::Delegate* delegate);
18 ~DevToolsFrontendHostImpl() override;
20 private:
21 // WebContentsObserver overrides.
22 bool OnMessageReceived(const IPC::Message& message,
23 RenderFrameHost* render_frame_host) override;
25 void OnDispatchOnInspectorBackend(const std::string& message);
26 void OnDispatchOnEmbedder(const std::string& message);
28 DevToolsFrontendHost::Delegate* delegate_;
29 DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendHostImpl);
32 } // namespace content
34 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_