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_H_ | 5 #ifndef IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_H_ |
6 #define IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_H_ | 6 #define IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_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 | 14 |
16 // Suffix to the name of file containing logs ready for upload. | 15 // Suffix to the name of file containing logs ready for upload. |
17 extern NSString* const kPendingLogFileSuffix; | 16 extern NSString* const kPendingLogFileSuffix; |
18 | 17 |
19 // Directory containing the logs produced by extensions that are ready for | 18 // Directory containing the logs produced by extensions that are ready for |
20 // upload. | 19 // upload. |
21 extern NSString* const kPendingLogFileDirectory; | 20 extern NSString* const kPendingLogFileDirectory; |
22 | 21 |
23 // Offsets the sessionID to avoid collision. The sessionID is limited to 1<<23. | 22 // Offsets the sessionID to avoid collision. The sessionID is limited to 1<<23. |
24 int AppGroupSessionID(int sessionID, AppGroupApplications application); | 23 int AppGroupSessionID(int sessionID, AppGroupApplications application); |
25 | 24 |
26 } // namespace app_group | 25 } // namespace app_group |
27 | 26 |
28 #endif // IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_H_ | 27 #endif // IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_H_ |
OLD | NEW |