// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_CRASH_ANDROID_CRASH_KEYS_ANDROID_H_
#define COMPONENTS_CRASH_ANDROID_CRASH_KEYS_ANDROID_H_
#include <string>
// See CrashKeys.java for how to add a new crash key.
// A Java counterpart will be generated for this enum.
// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.crash
enum class CrashKeyIndex {
APPLICATION_STATUS = 0,
PARTNER_CUSTOMIZATION_CONFIG,
FIRST_RUN,
NUM_SMALL_KEYS,
INSTALLED_MODULES = NUM_SMALL_KEYS,
NUM_ENTRIES
};
// These methods are only exposed for testing -- normal usage should be from
// Java.
void SetAndroidCrashKey(CrashKeyIndex index, const std::string& value);
void ClearAndroidCrashKey(CrashKeyIndex index);
void FlushAndroidCrashKeys();
#endif // COMPONENTS_CRASH_ANDROID_CRASH_KEYS_ANDROID_H_