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

Side by Side Diff: src/common/linux/http_upload.h

Issue 1842113002: Refactor sym_upload in tools to extract code into common/linux, and minor fixes (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: one more fix indent Created 4 years, 8 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
« no previous file with comments | « aclocal.m4 ('k') | src/common/linux/http_upload.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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> &parameters); 75 static bool CheckParameters(const map<string, string> &parameters);
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__
OLDNEW
« no previous file with comments | « aclocal.m4 ('k') | src/common/linux/http_upload.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698