| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 static bool ElfFileIdentifierFromMappedFile( | 66 static bool ElfFileIdentifierFromMappedFile( |
| 67 const void* base, | 67 const void* base, |
| 68 wasteful_vector<uint8_t>& identifier); | 68 wasteful_vector<uint8_t>& identifier); |
| 69 | 69 |
| 70 // Convert the |identifier| data to a string. The string will | 70 // Convert the |identifier| data to a string. The string will |
| 71 // be formatted as a UUID in all uppercase without dashes. | 71 // be formatted as a UUID in all uppercase without dashes. |
| 72 // (e.g., 22F065BBFC9C49F780FE26A7CEBD7BCE). | 72 // (e.g., 22F065BBFC9C49F780FE26A7CEBD7BCE). |
| 73 static std::string ConvertIdentifierToUUIDString( | 73 static std::string ConvertIdentifierToUUIDString( |
| 74 const wasteful_vector<uint8_t>& identifier); | 74 const wasteful_vector<uint8_t>& identifier); |
| 75 | 75 |
| 76 // Convert the entire |identifier| data to a hex string. |
| 77 static std::string ConvertIdentifierToString( |
| 78 const wasteful_vector<uint8_t>& identifier); |
| 79 |
| 76 private: | 80 private: |
| 77 // Storage for the path specified | 81 // Storage for the path specified |
| 78 std::string path_; | 82 std::string path_; |
| 79 }; | 83 }; |
| 80 | 84 |
| 81 } // namespace google_breakpad | 85 } // namespace google_breakpad |
| 82 | 86 |
| 83 #endif // COMMON_LINUX_FILE_ID_H__ | 87 #endif // COMMON_LINUX_FILE_ID_H__ |
| OLD | NEW |