blob: 435e3b691ed5443a79ba33e7e0dbe98fc04cd248 [file] [log] [blame]
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include "base/basictypes.h"
extern void InitCrashReporter();
bool IsCrashReporterEnabled();
static const size_t kMaxActiveURLSize = 1024;
static const size_t kGuidSize = 32; // 128 bits = 32 chars in hex.
static const size_t kDistroSize = 128;
struct BreakpadInfo {
const char* filename;
const char* process_type;
unsigned process_type_length;
const char* crash_url;
unsigned crash_url_length;
const char* guid;
unsigned guid_length;
const char* distro;
unsigned distro_length;
bool upload;
uint64_t process_start_time;
extern int HandleCrashDump(const BreakpadInfo& info);