Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: ios/chrome/browser/crash_report/crash_report_helper.h

Issue 2580363002: Upstream Chrome on iOS source code [1/11]. (Closed)
Patch Set: Created 4 years 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
Index: ios/chrome/browser/crash_report/crash_report_helper.h
diff --git a/ios/chrome/browser/crash_report/crash_report_helper.h b/ios/chrome/browser/crash_report/crash_report_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..274dabacd50c502e106721e1e072ce0df2559e52
--- /dev/null
+++ b/ios/chrome/browser/crash_report/crash_report_helper.h
@@ -0,0 +1,37 @@
+// Copyright 2012 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.
+@class NSString;
+@class TabModel;
+namespace ios_internal {
+namespace breakpad {
+// Monitors the urls loaded in |tab_model| to allow crash reports to contain
+// the currently loaded urls.
+// |tab_model| must not be an off-the-record tab model.
+void MonitorURLsForTabModel(TabModel* tab_model);
+// Stop monitoring the urls loaded in the |tabModel|.
+void StopMonitoringURLsForTabModel(TabModel* tab_model);
+// Adds the state monitor to |tab_model|. TabModels that are not monitored via
+// this function are still monitored through notifications, but calling this
+// function is mandatory to keep the monitoring of deleted tabs consistent.
+void MonitorTabStateForTabModel(TabModel* tab_model);
+// Stop the state monitor of |tab_model|.
+void StopMonitoringTabStateForTabModel(TabModel* tab_model);
+// Clear any state about the urls loaded in the given TabModel; this should be
+// called when the tab model is deactivated.
+void ClearStateForTabModel(TabModel* tab_model);
+} // namespace breakpad
+} // namespace ios_internal
« no previous file with comments | « ios/chrome/browser/crash_report/ ('k') | ios/chrome/browser/crash_report/ » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698