Chromium Code Reviews| Index: chrome/browser/extensions/error_console/error_console.h |
| diff --git a/chrome/browser/extensions/error_console/error_console.h b/chrome/browser/extensions/error_console/error_console.h |
| index f2d19eba5434fd1949ab473d66c9b3b846b46eb0..b94b04c4bd80e897635602bf5e6fb03d6052523c 100644 |
| --- a/chrome/browser/extensions/error_console/error_console.h |
| +++ b/chrome/browser/extensions/error_console/error_console.h |
| @@ -65,6 +65,15 @@ class ErrorConsole : public content::NotificationObserver, |
| ExtensionError::Type type, |
| bool enabled); |
| + // Set whether or not errors of all types are stored for the extension with |
| + // the given |extension_id|. |
| + void SetReportingForExtensionForAllTypes(const std::string& extension_id, |
|
not at google - send to devlin
2014/04/16 21:28:31
SetReportingAllForExtension?
Devlin
2014/04/16 22:50:41
Sure, why not.
|
| + bool enabled); |
| + |
| + // Returns true if reporting for either manifest or runtime errors is enabled |
| + // for the extension with the given |extension_id|. |
| + bool IsReportingEnabledForExtension(const std::string& extension_id) const; |
| + |
| // Restore default reporting to the given extension. |
| void UseDefaultReportingForExtension(const std::string& extension_id); |
| @@ -138,6 +147,14 @@ class ErrorConsole : public content::NotificationObserver, |
| const content::NotificationSource& source, |
| const content::NotificationDetails& details) OVERRIDE; |
| + // Sets the extension preference for error reporting. |
| + void SetExtensionPref(const std::string& extension_id, int32 mask); |
| + |
| + // Returns true if we should report the error of the given type for the |
| + // extension. |
| + bool ShouldReportErrorForExtension(const std::string& extension_id, |
| + ExtensionError::Type type) const; |
| + |
| // Whether or not the error console should record errors. This is true if |
| // the user is in developer mode, and at least one of the following is true: |
| // - The Chrome Apps Developer Tools are installed. |