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

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

Issue 106223002: chrome power profiler chrome side changes (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/weak_ptr.h"
13 #include "content/browser/power_profiler/devtools_power_profiler_host.h"
12 #include "content/public/browser/devtools_client_host.h" 14 #include "content/public/browser/devtools_client_host.h"
13 #include "content/public/browser/web_contents_observer.h" 15 #include "content/public/browser/web_contents_observer.h"
14 16
15 namespace content { 17 namespace content {
16 18
17 class DevToolsFrontendHostDelegate; 19 class DevToolsFrontendHostDelegate;
18 class WebContentsImpl; 20 class WebContentsImpl;
19 21
20 // This class handles messages from DevToolsClient and calls corresponding 22 // This class handles messages from DevToolsClient and calls corresponding
21 // methods on DevToolsFrontendHostDelegate which is implemented by the 23 // methods on DevToolsFrontendHostDelegate which is implemented by the
(...skipping 13 matching lines...) Expand all
35 virtual void InspectedContentsClosing() OVERRIDE; 37 virtual void InspectedContentsClosing() OVERRIDE;
36 virtual void ReplacedWithAnotherClient() OVERRIDE; 38 virtual void ReplacedWithAnotherClient() OVERRIDE;
37 39
38 // WebContentsObserver overrides. 40 // WebContentsObserver overrides.
39 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
40 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; 42 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE;
41 43
42 void OnDispatchOnInspectorBackend(const std::string& message); 44 void OnDispatchOnInspectorBackend(const std::string& message);
43 void OnDispatchOnEmbedder(const std::string& message); 45 void OnDispatchOnEmbedder(const std::string& message);
44 46
47 void OnPowerProfileStatus();
pfeldman 2014/01/09 11:38:58 This should be a part of devtools_agent_host.h
48 void OnStartProfile();
49 void OnStopProfile();
50 void OnSetResolution(unsigned resolution);
51
45 DevToolsFrontendHostDelegate* delegate_; 52 DevToolsFrontendHostDelegate* delegate_;
53 // to access DispatchOnInspectorFrontend
54 friend class DevToolsPowerProfilerHost;
55 base::WeakPtrFactory<DevToolsFrontendHost> weak_factory_;
56 scoped_refptr<DevToolsPowerProfilerHost> power_profiler_host_;
46 DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendHost); 57 DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendHost);
47 }; 58 };
48 59
49 } // namespace content 60 } // namespace content
50 61
51 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_H_ 62 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698