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

Side by Side Diff: obsolete/breakpad/common/linux/google_crashdump_uploader.h

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 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 (c) 2009, Google Inc.
2 // All rights reserved.
3 //
4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are
6 // met:
7 //
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above
11 // copyright notice, this list of conditions and the following disclaimer
12 // in the documentation and/or other materials provided with the
13 // distribution.
14 // * Neither the name of Google Inc. nor the names of its
15 // contributors may be used to endorse or promote products derived from
16 // this software without specific prior written permission.
17 //
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30
31 #include <string>
32 #include <map>
33
34 namespace google_breakpad {
35
36 class LibcurlWrapper;
37
38 class GoogleCrashdumpUploader {
39 public:
40 GoogleCrashdumpUploader(const std::string& product,
41 const std::string& version,
42 const std::string& guid,
43 const std::string& ptime,
44 const std::string& ctime,
45 const std::string& email,
46 const std::string& comments,
47 const std::string& minidump_pathname,
48 const std::string& crash_server,
49 const std::string& proxy_host,
50 const std::string& proxy_userpassword);
51
52 GoogleCrashdumpUploader(const std::string& product,
53 const std::string& version,
54 const std::string& guid,
55 const std::string& ptime,
56 const std::string& ctime,
57 const std::string& email,
58 const std::string& comments,
59 const std::string& minidump_pathname,
60 const std::string& crash_server,
61 const std::string& proxy_host,
62 const std::string& proxy_userpassword,
63 LibcurlWrapper* http_layer);
64
65 void Init(const std::string& product,
66 const std::string& version,
67 const std::string& guid,
68 const std::string& ptime,
69 const std::string& ctime,
70 const std::string& email,
71 const std::string& comments,
72 const std::string& minidump_pathname,
73 const std::string& crash_server,
74 const std::string& proxy_host,
75 const std::string& proxy_userpassword,
76 LibcurlWrapper* http_layer);
77 bool Upload();
78
79 private:
80 bool CheckRequiredParametersArePresent();
81
82 LibcurlWrapper* http_layer_;
83 std::string product_;
84 std::string version_;
85 std::string guid_;
86 std::string ptime_;
87 std::string ctime_;
88 std::string email_;
89 std::string comments_;
90 std::string minidump_pathname_;
91
92 std::string crash_server_;
93 std::string proxy_host_;
94 std::string proxy_userpassword_;
95
96 std::map<std::string, std::string> parameters_;
97 };
98 }
OLDNEW
« no previous file with comments | « obsolete/breakpad/common/linux/file_id_unittest.cc ('k') | obsolete/breakpad/common/linux/google_crashdump_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698