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

Side by Side Diff: src/common/linux/symbol_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 | « src/common/linux/http_upload.cc ('k') | src/common/linux/symbol_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 // -*- mode: c++ -*-
2
3 // Copyright (c) 2011 Google Inc.
2 // All rights reserved. 4 // All rights reserved.
3 // 5 //
4 // Redistribution and use in source and binary forms, with or without 6 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 7 // modification, are permitted provided that the following conditions are
6 // met: 8 // met:
7 // 9 //
8 // * Redistributions of source code must retain the above copyright 10 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 11 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 12 // * Redistributions in binary form must reproduce the above
11 // copyright notice, this list of conditions and the following disclaimer 13 // copyright notice, this list of conditions and the following disclaimer
12 // in the documentation and/or other materials provided with the 14 // in the documentation and/or other materials provided with the
13 // distribution. 15 // distribution.
14 // * Neither the name of Google Inc. nor the names of its 16 // * Neither the name of Google Inc. nor the names of its
15 // contributors may be used to endorse or promote products derived from 17 // contributors may be used to endorse or promote products derived from
16 // this software without specific prior written permission. 18 // this software without specific prior written permission.
17 // 19 //
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 // (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. 30 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 31
30 // pathname_stripper.h: Manipulates pathnames into their component parts. 32 // symbol_upload.h: helper functions for linux symbol upload tool.
31 //
32 // Author: Mark Mentovai
33 33
34 #ifndef PROCESSOR_PATHNAME_STRIPPER_H__ 34 #ifndef COMMON_LINUX_SYMBOL_UPLOAD_H_
35 #define PROCESSOR_PATHNAME_STRIPPER_H__ 35 #define COMMON_LINUX_SYMBOL_UPLOAD_H_
36 36
37 #include <string> 37 #include <string>
38 38
39 #include "common/using_std_string.h" 39 #include "common/using_std_string.h"
40 40
41 namespace google_breakpad { 41 namespace google_breakpad {
42 namespace sym_upload {
42 43
43 class PathnameStripper { 44 typedef struct {
44 public: 45 string symbolsPath;
45 // Given path, a pathname with components separated by slashes (/) or 46 string uploadURLStr;
46 // backslashes (\), returns the trailing component, without any separator. 47 string proxy;
47 // If path ends in a separator character, returns an empty string. 48 string proxy_user_pwd;
48 static string File(const string &path); 49 string version;
49 }; 50 bool success;
51 } Options;
50 52
53 // Starts upload to symbol server with options.
54 void Start(Options* options);
55
56 } // namespace sym_upload
51 } // namespace google_breakpad 57 } // namespace google_breakpad
52 58
53 #endif // PROCESSOR_PATHNAME_STRIPPER_H__ 59 #endif // COMMON_LINUX_SYMBOL_UPLOAD_H_
OLDNEW
« no previous file with comments | « src/common/linux/http_upload.cc ('k') | src/common/linux/symbol_upload.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698