1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39

android_webview / common / crash_reporter / crash_keys.h [blame]

// 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_