OLD | NEW |
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_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ |
6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ | 6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 private: | 37 private: |
38 // RenderView::Observer implementation. | 38 // RenderView::Observer implementation. |
39 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 39 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
40 | 40 |
41 // WebDevToolsFrontendClient implementation. | 41 // WebDevToolsFrontendClient implementation. |
42 virtual void sendMessageToBackend(const blink::WebString&) OVERRIDE; | 42 virtual void sendMessageToBackend(const blink::WebString&) OVERRIDE; |
43 virtual void sendMessageToEmbedder(const blink::WebString&) OVERRIDE; | 43 virtual void sendMessageToEmbedder(const blink::WebString&) OVERRIDE; |
44 | 44 |
45 virtual bool isUnderTest() OVERRIDE; | 45 virtual bool isUnderTest() OVERRIDE; |
46 | 46 |
| 47 virtual void checkPowerProfileSupportedStatus() OVERRIDE; |
| 48 virtual void startPowerProfile() OVERRIDE; |
| 49 virtual void stopPowerProfile() OVERRIDE; |
| 50 // 0: LOW, 1: NORMAL, 2: HIGH |
| 51 virtual void setPowerProfileResolution(unsigned resolution) OVERRIDE; |
| 52 |
47 void OnDispatchOnInspectorFrontend(const std::string& message); | 53 void OnDispatchOnInspectorFrontend(const std::string& message); |
48 | 54 |
49 scoped_ptr<blink::WebDevToolsFrontend> web_tools_frontend_; | 55 scoped_ptr<blink::WebDevToolsFrontend> web_tools_frontend_; |
50 | 56 |
51 DISALLOW_COPY_AND_ASSIGN(DevToolsClient); | 57 DISALLOW_COPY_AND_ASSIGN(DevToolsClient); |
52 }; | 58 }; |
53 | 59 |
54 } // namespace content | 60 } // namespace content |
55 | 61 |
56 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ | 62 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ |
OLD | NEW |