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

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

Issue 2622903003: [ObjC ARC] Converts ios/chrome/common/app_group:main_app to ARC. (Closed)
Patch Set: Remove scoped_block Created 3 years, 11 months 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 #include <stdint.h>
10 10
11 #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 typedef void (^ProceduralBlockWithData)(NSData*); 15 typedef void (^ProceduralBlockWithData)(NSData*);
17 16
18 // These methods must be called from the Chrome app. 17 // These methods must be called from the Chrome app.
19 namespace main_app { 18 namespace main_app {
20 19
21 // Iterates through the extensions pending logs and deletes them. 20 // Iterates through the extensions pending logs and deletes them.
22 // Calls |callback| on each log before deleting. 21 // Calls |callback| on each log before deleting.
23 void ProcessPendingLogs( 22 void ProcessPendingLogs(ProceduralBlockWithData callback);
24 const base::mac::ScopedBlock<ProceduralBlockWithData>& callback);
25 23
26 // Enables the metrics collecting in extensions. The extensions will 24 // Enables the metrics collecting in extensions. The extensions will
27 // use |clientID| as client ID, and |brandCode| as brand code in the logs. 25 // use |clientID| as client ID, and |brandCode| as brand code in the logs.
28 void EnableMetrics(NSString* client_id, 26 void EnableMetrics(NSString* client_id,
29 NSString* brand_code, 27 NSString* brand_code,
30 int64_t installDate, 28 int64_t installDate,
31 int64_t enableMetricsDate); 29 int64_t enableMetricsDate);
32 30
33 // Disabled the metrics collecting in extensions. 31 // Disabled the metrics collecting in extensions.
34 void DisableMetrics(); 32 void DisableMetrics();
35 33
36 } // namespace main_app 34 } // namespace main_app
37 } // namespace app_group 35 } // namespace app_group
38 36
39 #endif // IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_MAINAPP_H_ 37 #endif // IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_METRICS_MAINAPP_H_
OLDNEW
« no previous file with comments | « ios/chrome/common/app_group/BUILD.gn ('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