15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#ifndef REMOTING_BASE_BREAKPAD_H_ 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define REMOTING_BASE_BREAKPAD_H_ 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace remoting { 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Initializes collection and upload of crash reports. The caller has to ensure 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// that the user has agreed to crash dump reporting. 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Crash reporting has to be initialized as early as possible (e.g. the first 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// thing in main()) to catch crashes occuring during process startup. 155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Crashes which occur during the global static construction phase will not 165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be caught and reported. This should not be a problem as static non-POD 175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// objects are not allowed by the style guide and exceptions to this rule are 185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// rare. 195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void InitializeCrashReporting(); 205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} // remoting 225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif // REMOTING_BASE_BREAKPAD_H_ 24