Index: third_party/WebKit/Source/web/InspectorEmulationAgent.h |
diff --git a/third_party/WebKit/Source/web/InspectorEmulationAgent.h b/third_party/WebKit/Source/web/InspectorEmulationAgent.h |
index 4e87a7db0e7f91a59298e18f41b056d6acbf2f23..b25ba847461295ba74da61d088e93eb00fd79025 100644 |
--- a/third_party/WebKit/Source/web/InspectorEmulationAgent.h |
+++ b/third_party/WebKit/Source/web/InspectorEmulationAgent.h |
@@ -18,7 +18,14 @@ using ErrorString = String; |
class InspectorEmulationAgent final : public InspectorBaseAgent<InspectorEmulationAgent, InspectorFrontend::Emulation>, public InspectorBackendDispatcher::EmulationCommandHandler { |
WTF_MAKE_NONCOPYABLE(InspectorEmulationAgent); |
public: |
- static PassOwnPtrWillBeRawPtr<InspectorEmulationAgent> create(WebLocalFrameImpl*); |
+ class Client { |
+ public: |
+ virtual ~Client() {} |
+ |
+ virtual void setCPUThrottlingRate(double rate) {} |
+ }; |
+ |
+ static PassOwnPtrWillBeRawPtr<InspectorEmulationAgent> create(WebLocalFrameImpl*, Client*); |
~InspectorEmulationAgent() override; |
void viewportChanged(); |
@@ -29,6 +36,7 @@ public: |
void setScriptExecutionDisabled(ErrorString*, bool) override; |
void setTouchEmulationEnabled(ErrorString*, bool enabled, const String* configuration) override; |
void setEmulatedMedia(ErrorString*, const String&) override; |
+ void setCPUThrottlingRate(ErrorString*, double rate) override; |
// InspectorBaseAgent overrides. |
void disable(ErrorString*) override; |
@@ -39,14 +47,13 @@ public: |
DECLARE_VIRTUAL_TRACE(); |
private: |
- explicit InspectorEmulationAgent(WebLocalFrameImpl*); |
+ InspectorEmulationAgent(WebLocalFrameImpl*, Client*); |
WebViewImpl* webViewImpl(); |
RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl; |
+ Client* m_client; |
}; |
- |
} // namespace blink |
- |
#endif // !defined(InspectorEmulationAgent_h) |