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

Side by Side Diff: ios/chrome/browser/crash_report/crash_report_multi_parameter.h

Issue 1207353005: [iOS] Upstream some stability code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 5 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
(Empty)
1 // Copyright 2014 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_CRASH_REPORT_CRASH_REPORT_MULTI_PARAMETER_H_
6 #define IOS_CHROME_BROWSER_CRASH_REPORT_CRASH_REPORT_MULTI_PARAMETER_H_
7
8 #include <Foundation/Foundation.h>
9
sdefresne 2015/07/08 14:18:34 #include "base/logging.h"
10 // CrashReportMultiParameter keeps state of multiple report values that will be
11 // grouped in a single breakpad element to save limited number of breakpad
12 // values.
13 @interface CrashReportMultiParameter : NSObject
14 // Init with the breakpad parameter key.
15 - (id)initWithKey:(NSString*)key;
sdefresne 2015/07/08 14:18:34 id -> instancetype and maybe NS_DESIGNATED_INITIAL
16
sdefresne 2015/07/08 14:18:34 - (instancetype)init NS_UNAVAILABLE;
17 // Adds or updates an element in the dictionary of the breakpad report. Value
18 // are stored in the instance so every time you call this function, the whole
19 // JSON dictionary is regenerated. The total size of the serialized dictionary
20 // bmust e under 256 bytes due to Breakpad limitation. Setting a value to 0 will
21 // not remove the key. Use [removeValue:key] instead.
22 - (void)setValue:(NSString*)key withValue:(int)value;
23
24 // Removes the key element from the dictionary. Note that this is different from
25 // setting the parameter to 0 or false.
26 - (void)removeValue:(NSString*)key;
27
28 // Increases the key element by one.
29 - (void)incrementValue:(NSString*)key;
30
31 // Decreases the key element by one. If the element is 0, the element is removed
32 // from the dictionary.
33 - (void)decrementValue:(NSString*)key;
34 @end
35
36 #endif // IOS_CHROME_BROWSER_CRASH_REPORT_CRASH_REPORT_MULTI_PARAMETER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698