| OLD | NEW |
| 1 // Copyright (c) 2006, Google Inc. | 1 // Copyright (c) 2006, Google Inc. |
| 2 // All rights reserved. | 2 // All rights reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
| 9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
| 10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // | 29 // |
| 30 // This component uses the HTTPMultipartUpload of the breakpad project to send | 30 // This component uses the HTTPMultipartUpload of the breakpad project to send |
| 31 // the minidump and associated data to the crash reporting servers. | 31 // the minidump and associated data to the crash reporting servers. |
| 32 // It will perform throttling based on the parameters passed to it and will | 32 // It will perform throttling based on the parameters passed to it and will |
| 33 // prompt the user to send the minidump. | 33 // prompt the user to send the minidump. |
| 34 | 34 |
| 35 #include <Foundation/Foundation.h> | 35 #include <Foundation/Foundation.h> |
| 36 | 36 |
| 37 #include "client/mac/Framework/Breakpad.h" | 37 #include "client/mac/Framework/Breakpad.h" |
| 38 | 38 |
| 39 #define VERBOSE 0 |
| 40 |
| 41 extern bool gDebugLog; |
| 42 |
| 43 #define DEBUGLOG if (gDebugLog) fprintf |
| 44 |
| 39 #define kClientIdPreferenceKey @"clientid" | 45 #define kClientIdPreferenceKey @"clientid" |
| 40 | 46 |
| 41 @interface Reporter : NSObject { | 47 @interface Reporter : NSObject { |
| 42 @public | 48 @public |
| 43 IBOutlet NSWindow *alertWindow; // The alert window | 49 IBOutlet NSWindow *alertWindow; // The alert window |
| 44 | 50 |
| 45 // Values bound in the XIB | 51 // Values bound in the XIB |
| 46 NSString *headerMessage_; // Message notifying of the crash | 52 NSString *headerMessage_; // Message notifying of the crash |
| 47 NSString *reportMessage_; // Message explaining the crash report | 53 NSString *reportMessage_; // Message explaining the crash report |
| 48 NSString *commentsValue_; // Comments from the user | 54 NSString *commentsValue_; // Comments from the user |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 86 |
| 81 - (NSString *)commentsValue; | 87 - (NSString *)commentsValue; |
| 82 - (void)setCommentsValue:(NSString *)value; | 88 - (void)setCommentsValue:(NSString *)value; |
| 83 | 89 |
| 84 - (NSString *)emailMessage; | 90 - (NSString *)emailMessage; |
| 85 - (void)setEmailMessage:(NSString *)value; | 91 - (void)setEmailMessage:(NSString *)value; |
| 86 | 92 |
| 87 - (NSString *)emailValue; | 93 - (NSString *)emailValue; |
| 88 - (void)setEmailValue:(NSString *)value; | 94 - (void)setEmailValue:(NSString *)value; |
| 89 @end | 95 @end |
| OLD | NEW |