OLD | NEW |
(Empty) | |
| 1 // Copyright 2012 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. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_CRASH_REPORT_CRASH_REPORT_HELPER_H_ |
| 6 #define IOS_CHROME_BROWSER_CRASH_REPORT_CRASH_REPORT_HELPER_H_ |
| 7 |
| 8 @class NSString; |
| 9 @class TabModel; |
| 10 |
| 11 namespace ios_internal { |
| 12 namespace breakpad { |
| 13 |
| 14 // Monitors the urls loaded in |tab_model| to allow crash reports to contain |
| 15 // the currently loaded urls. |
| 16 // |tab_model| must not be an off-the-record tab model. |
| 17 void MonitorURLsForTabModel(TabModel* tab_model); |
| 18 |
| 19 // Stop monitoring the urls loaded in the |tabModel|. |
| 20 void StopMonitoringURLsForTabModel(TabModel* tab_model); |
| 21 |
| 22 // Adds the state monitor to |tab_model|. TabModels that are not monitored via |
| 23 // this function are still monitored through notifications, but calling this |
| 24 // function is mandatory to keep the monitoring of deleted tabs consistent. |
| 25 void MonitorTabStateForTabModel(TabModel* tab_model); |
| 26 |
| 27 // Stop the state monitor of |tab_model|. |
| 28 void StopMonitoringTabStateForTabModel(TabModel* tab_model); |
| 29 |
| 30 // Clear any state about the urls loaded in the given TabModel; this should be |
| 31 // called when the tab model is deactivated. |
| 32 void ClearStateForTabModel(TabModel* tab_model); |
| 33 |
| 34 } // namespace breakpad |
| 35 } // namespace ios_internal |
| 36 |
| 37 #endif // IOS_CHROME_BROWSER_CRASH_REPORT_CRASH_REPORT_HELPER_H_ |
OLD | NEW |