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

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

Issue 1056073003: DevTools: introduce RecordEnumeratedHistogram method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline Created 5 years, 8 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
« no previous file with comments | « content/browser/bad_message.h ('k') | content/browser/devtools/devtools_frontend_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_
7 7
8 #include "content/public/browser/devtools_frontend_host.h" 8 #include "content/public/browser/devtools_frontend_host.h"
9 #include "content/public/browser/web_contents_observer.h" 9 #include "content/public/browser/web_contents_observer.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class DevToolsFrontendHostImpl : public DevToolsFrontendHost, 13 class DevToolsFrontendHostImpl : public DevToolsFrontendHost,
14 public WebContentsObserver { 14 public WebContentsObserver {
15 public: 15 public:
16 DevToolsFrontendHostImpl(RenderFrameHost* frontend_main_frame, 16 DevToolsFrontendHostImpl(RenderFrameHost* frontend_main_frame,
17 DevToolsFrontendHost::Delegate* delegate); 17 DevToolsFrontendHost::Delegate* delegate);
18 ~DevToolsFrontendHostImpl() override; 18 ~DevToolsFrontendHostImpl() override;
19 19
20 void BadMessageRecieved() override;
21
20 private: 22 private:
21 // WebContentsObserver overrides. 23 // WebContentsObserver overrides.
22 bool OnMessageReceived(const IPC::Message& message, 24 bool OnMessageReceived(const IPC::Message& message,
23 RenderFrameHost* render_frame_host) override; 25 RenderFrameHost* render_frame_host) override;
24 26
25 void OnDispatchOnInspectorBackend(const std::string& message); 27 void OnDispatchOnInspectorBackend(const std::string& message);
26 void OnDispatchOnEmbedder(const std::string& message); 28 void OnDispatchOnEmbedder(const std::string& message);
27 29
28 DevToolsFrontendHost::Delegate* delegate_; 30 DevToolsFrontendHost::Delegate* delegate_;
29 DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendHostImpl); 31 DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendHostImpl);
30 }; 32 };
31 33
32 } // namespace content 34 } // namespace content
33 35
34 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_ 36 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/bad_message.h ('k') | content/browser/devtools/devtools_frontend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698