1 // Copyright 2016 The Chromium Embedded Framework Authors. Portions copyright 2 // 2016 The Chromium Authors. All rights reserved. Use of this source code is 3 // governed by a BSD-style license that can be found in the LICENSE file. 4 5 #include <string> 6 7 #include "base/strings/string_piece_forward.h" 8 #include "build/build_config.h" 9 10 namespace base { 11 class CommandLine; 12 } 13 14 namespace crash_reporting { 15 16 // Returns true if crash reporting is enabled. 17 bool Enabled(); 18 19 // Set or clear a crash key value. 20 bool SetCrashKeyValue(const base::StringPiece& key, 21 const base::StringPiece& value); 22 23 // Functions are called from similarly named methods in AlloyMainDelegate. 24 25 #if BUILDFLAG(IS_POSIX) 26 void BasicStartupComplete(base::CommandLine* command_line); 27 #endif 28 29 void PreSandboxStartup(const base::CommandLine& command_line, 30 const std::string& process_type); 31 32 #if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_MAC) 33 void ZygoteForked(base::CommandLine* command_line, 34 const std::string& process_type); 35 #endif 36 37 } // namespace crash_reporting 38