Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: content/browser/devtools/devtools_frontend_host_impl.h

Issue 427143003: [DevTools] Move DevToolsClientHost functionality out of DevToolsFrontendHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_
7
8 #include "content/public/browser/devtools_frontend_host.h"
9 #include "content/public/browser/web_contents_observer.h"
10
11 namespace content {
12
13 class DevToolsFrontendHostImpl : public DevToolsFrontendHost,
14 public WebContentsObserver {
15 public:
16 DevToolsFrontendHostImpl(WebContents* web_contents,
17 DevToolsFrontendHost::Delegate* delegate);
18 virtual ~DevToolsFrontendHostImpl();
19
20 // DevToolsFrontendHost implementation.
21 virtual void DispatchOnDevToolsFrontend(const std::string& message) OVERRIDE;
22
23 private:
24 // WebContentsObserver overrides.
25 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
26 virtual void AboutToNavigateRenderView(
27 RenderViewHost* render_view_host) OVERRIDE;
28
29 void OnDispatchOnInspectorBackend(const std::string& message);
30 void OnDispatchOnEmbedder(const std::string& message);
31
32 DevToolsFrontendHost::Delegate* delegate_;
33 DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendHostImpl);
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698