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

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

Issue 34773002: Adding an api to get number of event listeners. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding some more files to the patch set. Created 7 years, 2 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/event_listener_count.h
diff --git a/chrome/test/chromedriver/chrome/event_listener_count.h b/chrome/test/chromedriver/chrome/event_listener_count.h
new file mode 100644
index 0000000000000000000000000000000000000000..85756268bfd7d489afc589498cf168728509be57
--- /dev/null
+++ b/chrome/test/chromedriver/chrome/event_listener_count.h
@@ -0,0 +1,37 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_TEST_CHROMEDRIVER_CHROME_EVENT_LISTENER_COUNT_H_
+#define CHROME_TEST_CHROMEDRIVER_CHROME_EVENT_LISTENER_COUNT_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
+#include "chrome/test/chromedriver/chrome/devtools_event_listener.h"
+
+namespace base {
+class DictionaryValue;
+class Value;
+}
+
+class DevToolsClient;
+class Status;
+
+// Take the heap snapshot.
+class EventListenerCount: public DevToolsEventListener {
chrisgao (Use stgao instead) 2013/10/26 00:54:01 We don't need to inherit DevToolsEventListener her
+ public:
+ explicit EventListenerCount(DevToolsClient* client);
+ virtual ~EventListenerCount();
+
+ Status GetEventListenersCount(int *count);
+
+ private:
+ Status GetEventListenersCountInternal(scoped_ptr<base::DictionaryValue>*);
+ DevToolsClient* client_;
+};
+
+#endif // CHROME_TEST_CHROMEDRIVER_CHROME_EVENT_LISTENER_COUNT_H_
+

Powered by Google App Engine
This is Rietveld 408576698