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

Unified Diff: chrome/test/chromedriver/chrome/web_view_impl.h

Issue 275193003: [ChromeDriver] Expose CPU Profiling DevTools API into chromeWebDriver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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: chrome/test/chromedriver/chrome/web_view_impl.h
diff --git a/chrome/test/chromedriver/chrome/web_view_impl.h b/chrome/test/chromedriver/chrome/web_view_impl.h
index c3991c46ecf6fca26c37b6b7ac7371efcd2d8831..d228627a42eedc069bc0e60ca0b3719d903a3fc0 100644
--- a/chrome/test/chromedriver/chrome/web_view_impl.h
+++ b/chrome/test/chromedriver/chrome/web_view_impl.h
@@ -25,6 +25,7 @@ class DomTracker;
class FrameTracker;
class GeolocationOverrideManager;
class HeapSnapshotTaker;
+class CpuProfile;
struct KeyEvent;
struct MouseEvent;
class NavigationTracker;
@@ -88,6 +89,8 @@ class WebViewImpl : public WebView {
const base::DictionaryValue& element,
const std::vector<base::FilePath>& files) OVERRIDE;
virtual Status TakeHeapSnapshot(scoped_ptr<base::Value>* snapshot) OVERRIDE;
+ virtual Status StartProfile(scoped_ptr<base::Value>* snapshot) OVERRIDE;
+ virtual Status EndProfile(scoped_ptr<base::Value>* snapshot) OVERRIDE;
private:
Status CallAsyncFunctionInternal(const std::string& frame,
@@ -106,6 +109,7 @@ class WebViewImpl : public WebView {
scoped_ptr<JavaScriptDialogManager> dialog_manager_;
scoped_ptr<GeolocationOverrideManager> geolocation_override_manager_;
scoped_ptr<HeapSnapshotTaker> heap_snapshot_taker_;
+ scoped_ptr<CpuProfile> cpu_profile_;
scoped_ptr<DebuggerTracker> debugger_;
scoped_ptr<DevToolsClient> client_;
};

Powered by Google App Engine
This is Rietveld 408576698