OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_CLIENT_H_ | 5 #ifndef IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_CLIENT_H_ |
6 #define IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_CLIENT_H_ | 6 #define IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_CLIENT_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/mac/scoped_block.h" | 10 #include "base/mac/scoped_block.h" |
12 #include "ios/chrome/common/app_group/app_group_constants.h" | 11 #include "ios/chrome/common/app_group/app_group_constants.h" |
13 | 12 |
14 namespace app_group { | 13 namespace app_group { |
15 namespace client_app { | 14 namespace client_app { |
16 | 15 |
17 // Adds a closed log to the pending log directory. The log will be processed the | 16 // Adds a closed log to the pending log directory. The log will be processed the |
18 // next time Chrome is launched. | 17 // next time Chrome is launched. |
19 void AddPendingLog(NSData* log, AppGroupApplications application); | 18 void AddPendingLog(NSData* log, AppGroupApplications application); |
20 | 19 |
21 // Deletes oldest pending logs. | 20 // Deletes oldest pending logs. |
22 void CleanOldPendingLogs(); | 21 void CleanOldPendingLogs(); |
23 | 22 |
24 } // namespace client_app | 23 } // namespace client_app |
25 } // namespace app_group | 24 } // namespace app_group |
26 | 25 |
27 #endif // IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_CLIENT_H_ | 26 #endif // IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_CLIENT_H_ |
OLD | NEW |