chromium/android_webview/common/crash_reporter/crash_keys.h

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ANDROID_WEBVIEW_COMMON_CRASH_REPORTER_CRASH_KEYS_H_
#define ANDROID_WEBVIEW_COMMON_CRASH_REPORTER_CRASH_KEYS_H_

namespace android_webview {
namespace crash_keys {

// Registers all of the potential crash keys that can be sent to the crash
// reporting server. Returns the size of the union of all keys.
void InitCrashKeysForWebViewTesting();

extern const char* const kWebViewCrashKeyAllowList[];

// Crash Key Name Constants ////////////////////////////////////////////////////

// Application information.
extern const char kAppPackageName[];
extern const char kAppPackageVersionCode[];
extern const char kAppProcessName[];

extern const char kAndroidSdkInt[];

// `gpu::error::ContextLostReason` for context loss on draw functor context.
extern const char kContextLossReason[];

extern const char kSupportLibraryWebkitVersion[];

// Indicates whether weblayer and webview are running in the same process.
// When this is true, crashes may be reported to both WebLayer and WebView,
// regardless of whetere the crash happened.
extern const char kWeblayerWebViewCompatMode[];

}  // namespace crash_keys
}  // namespace android_webview

#endif  // ANDROID_WEBVIEW_COMMON_CRASH_REPORTER_CRASH_KEYS_H_