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

Side by Side Diff: ios/chrome/common/app_group/app_group_metrics_mainapp.h

Issue 1544743002: Switch to standard integer types in ios/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
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_MAINAPP_H_ 5 #ifndef IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_MAINAPP_H_
6 #define IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_MAINAPP_H_ 6 #define IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_MAINAPP_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #include <stdint.h>
9 10
10 #include "base/basictypes.h"
11 #include "base/mac/scoped_block.h" 11 #include "base/mac/scoped_block.h"
12 #include "ios/chrome/common/app_group/app_group_constants.h" 12 #include "ios/chrome/common/app_group/app_group_constants.h"
13 13
14 namespace app_group { 14 namespace app_group {
15 15
16 typedef void (^ProceduralBlockWithData)(NSData*); 16 typedef void (^ProceduralBlockWithData)(NSData*);
17 17
18 // These methods must be called from the Chrome app. 18 // These methods must be called from the Chrome app.
19 namespace main_app { 19 namespace main_app {
20 20
21 // Iterates through the extensions pending logs and deletes them. 21 // Iterates through the extensions pending logs and deletes them.
22 // Calls |callback| on each log before deleting. 22 // Calls |callback| on each log before deleting.
23 void ProcessPendingLogs( 23 void ProcessPendingLogs(
24 const base::mac::ScopedBlock<ProceduralBlockWithData>& callback); 24 const base::mac::ScopedBlock<ProceduralBlockWithData>& callback);
25 25
26 // Enables the metrics collecting in extensions. The extensions will 26 // Enables the metrics collecting in extensions. The extensions will
27 // use |clientID| as client ID, and |brandCode| as brand code in the logs. 27 // use |clientID| as client ID, and |brandCode| as brand code in the logs.
28 void EnableMetrics(NSString* client_id, 28 void EnableMetrics(NSString* client_id,
29 NSString* brand_code, 29 NSString* brand_code,
30 int64 installDate, 30 int64_t installDate,
31 int64 enableMetricsDate); 31 int64_t enableMetricsDate);
32 32
33 // Disabled the metrics collecting in extensions. 33 // Disabled the metrics collecting in extensions.
34 void DisableMetrics(); 34 void DisableMetrics();
35 35
36 } // namespace main_app 36 } // namespace main_app
37 } // namespace app_group 37 } // namespace app_group
38 38
39 #endif // IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_MAINAPP_H_ 39 #endif // IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_MAINAPP_H_
OLDNEW
« no previous file with comments | « ios/chrome/common/app_group/app_group_metrics_client.h ('k') | ios/chrome/common/app_group/app_group_metrics_mainapp.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698