Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1010)

Unified Diff: components/crash/app/crashpad_mac.h

Issue 1315303004: Turn components/crash into a layered component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/crash/app/crash_reporter_client.cc ('k') | components/crash/app/crashpad_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crash/app/crashpad_mac.h
diff --git a/components/crash/app/crashpad_mac.h b/components/crash/app/crashpad_mac.h
deleted file mode 100644
index 895cb2baca1c41c0228ac546313ae60aea4ffb3b..0000000000000000000000000000000000000000
--- a/components/crash/app/crashpad_mac.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2015 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.
-
-#ifndef COMPONENTS_CRASH_APP_CRASHPAD_MAC_H_
-#define COMPONENTS_CRASH_APP_CRASHPAD_MAC_H_
-
-#include <time.h>
-
-#include <string>
-#include <vector>
-
-namespace crash_reporter {
-
-// Initializes Crashpad in a way that is appropriate for process_type. If
-// process_type is empty, initializes Crashpad for the browser process, which
-// starts crashpad_handler and sets it as the exception handler. Other process
-// types inherit this exception handler from the browser, but still need to
-// perform additional initialization.
-void InitializeCrashpad(const std::string& process_type);
-
-// Enables or disables crash report upload. This is a property of the Crashpad
-// database. In a newly-created database, uploads will be disabled. This
-// function only has an effect when called in the browser process. Its effect is
-// immediate and applies to all other process types, including processes that
-// are already running.
-void SetUploadsEnabled(bool enabled);
-
-// Determines whether uploads are enabled or disabled. This information is only
-// available in the browser process.
-bool GetUploadsEnabled();
-
-struct UploadedReport {
- std::string local_id;
- std::string remote_id;
- time_t creation_time;
-};
-
-// Obtains a list of reports uploaded to the collection server. This function
-// only operates when called in the browser process. All reports in the Crashpad
-// database that have been successfully uploaded will be included in this list.
-// The list will be sorted in descending order by report creation time (newest
-// reports first).
-//
-// TODO(mark): The about:crashes UI expects to show only uploaded reports. If it
-// is ever enhanced to work well with un-uploaded reports, those should be
-// returned as well. Un-uploaded reports may have a pending upload, may have
-// experienced upload failure, or may have been collected while uploads were
-// disabled.
-void GetUploadedReports(std::vector<UploadedReport>* uploaded_reports);
-
-} // namespace crash_reporter
-
-#endif // COMPONENTS_CRASH_APP_CRASHPAD_MAC_H_
« no previous file with comments | « components/crash/app/crash_reporter_client.cc ('k') | components/crash/app/crashpad_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698