// Copyright 2015 The Crashpad Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef CRASHPAD_CLIENT_SETTINGS_H_ #define CRASHPAD_CLIENT_SETTINGS_H_ #include <time.h> #include "base/files/file_path.h" #include "base/scoped_generic.h" #include "build/build_config.h" #include "util/file/file_io.h" #include "util/misc/initialization_state.h" #include "util/misc/uuid.h" #if BUILDFLAG(IS_IOS) #include "util/ios/scoped_background_task.h" #endif // BUILDFLAG(IS_IOS) namespace crashpad { namespace internal { struct ScopedLockedFileHandleTraits { … }; enum class FileOpenFunction { … }; struct MakeScopedLockedFileHandleOptions { … }; // TODO(mark): The timeout should be configurable by the client. #if BUILDFLAG(IS_IOS) // iOS background assertions only last 30 seconds, keep the timeout shorter. constexpr double kUploadReportTimeoutSeconds = 20; #else constexpr double kUploadReportTimeoutSeconds = …; #endif } // namespace internal //! \brief An interface for accessing and modifying the settings of a //! CrashReportDatabase. //! //! This class must not be instantiated directly, but rather an instance of it //! should be retrieved via CrashReportDatabase::GetSettings(). class Settings { … }; } // namespace crashpad #endif // CRASHPAD_CLIENT_SETTINGS_H_