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

Unified Diff: ios/chrome/browser/metrics/tab_usage_recorder_delegate.h

Issue 2585233003: Upstream Chrome on iOS source code [2/11]. (Closed)
Patch Set: Created 4 years 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: ios/chrome/browser/metrics/tab_usage_recorder_delegate.h
diff --git a/ios/chrome/browser/metrics/tab_usage_recorder_delegate.h b/ios/chrome/browser/metrics/tab_usage_recorder_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..74046a4fbcb2cbda067322f37f4e2d75cdc16aed
--- /dev/null
+++ b/ios/chrome/browser/metrics/tab_usage_recorder_delegate.h
@@ -0,0 +1,21 @@
+// Copyright 2015 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 IOS_CHROME_BROWSER_METRICS_TAB_USAGE_RECORDER_DELEGATE_H_
+#define IOS_CHROME_BROWSER_METRICS_TAB_USAGE_RECORDER_DELEGATE_H_
+
+#import <Foundation/Foundation.h>
+
+// A delegate which provides to the TabUsageRecorder a count of how many alive
+// tabs it is monitoring.
+@protocol TabUsageRecorderDelegate
+
+// A count of how many alive tabs the TabUsageRecorder is monitoring.
+// NOTE: This should be used for metrics-gathering only; for any other purpose
+// callers should not know or care how many tabs are alive.
+- (NSUInteger)liveTabsCount;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_METRICS_TAB_USAGE_RECORDER_DELEGATE_H_
« no previous file with comments | « ios/chrome/browser/metrics/tab_usage_recorder.mm ('k') | ios/chrome/browser/metrics/tab_usage_recorder_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698