| OLD | NEW |
| 1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 The Crashpad Authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
| 6 // | 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // | 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 bool CrashpadClient::StartHandler( | 64 bool CrashpadClient::StartHandler( |
| 65 const base::FilePath& handler, | 65 const base::FilePath& handler, |
| 66 const base::FilePath& database, | 66 const base::FilePath& database, |
| 67 const std::string& url, | 67 const std::string& url, |
| 68 const std::map<std::string, std::string>& annotations, | 68 const std::map<std::string, std::string>& annotations, |
| 69 const std::vector<std::string>& arguments) { | 69 const std::vector<std::string>& arguments) { |
| 70 // TODO(cpu): Provide a reference implementation. | 70 // TODO(cpu): Provide a reference implementation. |
| 71 return false; | 71 return false; |
| 72 } | 72 } |
| 73 | 73 |
| 74 bool SetHandler(const std::string& ipc_port) { | 74 bool CrashpadClient::SetHandler(const std::string& ipc_port) { |
| 75 // TODO (cpu): Contact the handler and obtain g_signal_exception and | 75 // TODO (cpu): Contact the handler and obtain g_signal_exception and |
| 76 // g_wait_termination. | 76 // g_wait_termination. |
| 77 return false; | 77 return false; |
| 78 } | 78 } |
| 79 | 79 |
| 80 bool CrashpadClient::UseHandler() { | 80 bool CrashpadClient::UseHandler() { |
| 81 if (!g_signal_exception) | 81 if (!g_signal_exception) |
| 82 return false; | 82 return false; |
| 83 if (!g_wait_termination) | 83 if (!g_wait_termination) |
| 84 return false; | 84 return false; |
| 85 // In theory we could store the previous handler but it is not clear what | 85 // In theory we could store the previous handler but it is not clear what |
| 86 // use we have for it. | 86 // use we have for it. |
| 87 SetUnhandledExceptionFilter(&UnhandledExceptionHandler); | 87 SetUnhandledExceptionFilter(&UnhandledExceptionHandler); |
| 88 return true; | 88 return true; |
| 89 } | 89 } |
| 90 | 90 |
| 91 } // namespace crashpad | 91 } // namespace crashpad |
| OLD | NEW |