[Mac] Cancel obsolete autoClose calls in DownloadShelfController.
[chromium-blink-merge.git] / chrome_frame / chrome_frame_reporting.h
blob94ee7f97bf2b20e5ac4646ebbd4b70c8e652f8dd
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_FRAME_CHROME_FRAME_REPORTING_H_
6 #define CHROME_FRAME_CHROME_FRAME_REPORTING_H_
8 #include "chrome_frame/scoped_initialization_manager.h"
10 namespace chrome_frame {
12 // A Traits class for a ScopedInitializationManager that starts/stops crash
13 // reporting for npchrome_frame.dll.
14 class CrashReportingTraits {
15 public:
16 static void Initialize();
17 static void Shutdown();
20 // Manages crash reporting for the Chrome Frame dll. Crash reporting cannot be
21 // reliably started or stopped when the loader lock is held, so DllMain cannot
22 // be used to start/stop reporting. Rather, instances of this class are used in
23 // each entrypoint into the dll.
24 typedef ScopedInitializationManager<CrashReportingTraits> ScopedCrashReporting;
26 } // namespace chrome_frame
28 #endif // CHROME_FRAME_CHROME_FRAME_REPORTING_H_