OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_METRICS_TAB_USAGE_RECORDER_DELEGATE_H_ |
| 6 #define IOS_CHROME_BROWSER_METRICS_TAB_USAGE_RECORDER_DELEGATE_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 // A delegate which provides to the TabUsageRecorder a count of how many alive |
| 11 // tabs it is monitoring. |
| 12 @protocol TabUsageRecorderDelegate |
| 13 |
| 14 // A count of how many alive tabs the TabUsageRecorder is monitoring. |
| 15 // NOTE: This should be used for metrics-gathering only; for any other purpose |
| 16 // callers should not know or care how many tabs are alive. |
| 17 - (NSUInteger)liveTabsCount; |
| 18 |
| 19 @end |
| 20 |
| 21 #endif // IOS_CHROME_BROWSER_METRICS_TAB_USAGE_RECORDER_DELEGATE_H_ |
OLD | NEW |