| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 string *response_body, | 67 string *response_body, |
| 68 long *response_code, | 68 long *response_code, |
| 69 string *error_description); | 69 string *error_description); |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 // Checks that the given list of parameters has only printable | 72 // Checks that the given list of parameters has only printable |
| 73 // ASCII characters in the parameter name, and does not contain | 73 // ASCII characters in the parameter name, and does not contain |
| 74 // any quote (") characters. Returns true if so. | 74 // any quote (") characters. Returns true if so. |
| 75 static bool CheckParameters(const map<string, string> ¶meters); | 75 static bool CheckParameters(const map<string, string> ¶meters); |
| 76 | 76 |
| 77 // Checks the curl_lib parameter points to a valid curl lib. |
| 78 static bool CheckCurlLib(void* curl_lib); |
| 79 |
| 77 // No instances of this class should be created. | 80 // No instances of this class should be created. |
| 78 // Disallow all constructors, destructors, and operator=. | 81 // Disallow all constructors, destructors, and operator=. |
| 79 HTTPUpload(); | 82 HTTPUpload(); |
| 80 explicit HTTPUpload(const HTTPUpload &); | 83 explicit HTTPUpload(const HTTPUpload &); |
| 81 void operator=(const HTTPUpload &); | 84 void operator=(const HTTPUpload &); |
| 82 ~HTTPUpload(); | 85 ~HTTPUpload(); |
| 83 }; | 86 }; |
| 84 | 87 |
| 85 } // namespace google_breakpad | 88 } // namespace google_breakpad |
| 86 | 89 |
| 87 #endif // COMMON_LINUX_HTTP_UPLOAD_H__ | 90 #endif // COMMON_LINUX_HTTP_UPLOAD_H__ |
| OLD | NEW |