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

Unified Diff: third_party/WebKit/Source/web/InspectorEmulationAgent.h

Issue 2185033002: Emulation.setVirtualTimePolicy to have an optional virtual time budge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename parameter Created 4 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 side-by-side diff with in-line comments
Download patch
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 40baa977d1aab11b11e0add7fc2920727b0609e5..ebd3e34656da02aa24ef7825ff246f9860a72caa 100644
--- a/third_party/WebKit/Source/web/InspectorEmulationAgent.h
+++ b/third_party/WebKit/Source/web/InspectorEmulationAgent.h
@@ -10,6 +10,7 @@
namespace blink {
+class CancellableTaskFactory;
class WebLocalFrameImpl;
class WebViewImpl;
@@ -33,7 +34,7 @@ public:
void setTouchEmulationEnabled(ErrorString*, bool in_enabled, const protocol::Maybe<String>& in_configuration) override;
void setEmulatedMedia(ErrorString*, const String& in_media) override;
void setCPUThrottlingRate(ErrorString*, double in_rate) override;
- void setVirtualTimePolicy(ErrorString*, const String& in_policy) override;
+ void setVirtualTimePolicy(ErrorString*, const String& in_policy, const protocol::Maybe<int>& in_virtualTimeBudgetMs) override;
// InspectorBaseAgent overrides.
void disable(ErrorString*) override;
@@ -44,9 +45,11 @@ public:
private:
InspectorEmulationAgent(WebLocalFrameImpl*, Client*);
WebViewImpl* webViewImpl();
+ void virtualTimeBudgetExpired();
Member<WebLocalFrameImpl> m_webLocalFrameImpl;
Client* m_client;
+ std::unique_ptr<CancellableTaskFactory> m_virtualTimeBudgetExpiredTask;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698