Chromium Code Reviews| Index: chrome/browser/ui/global_error_service.h |
| diff --git a/chrome/browser/ui/global_error_service.h b/chrome/browser/ui/global_error_service.h |
| index 500cf2f51112ab6ea10adff4ae2eecc5be247295..71cd4576e4a958575fa5e27603baf5ac76470d49 100644 |
| --- a/chrome/browser/ui/global_error_service.h |
| +++ b/chrome/browser/ui/global_error_service.h |
| @@ -12,6 +12,7 @@ |
| #include "chrome/browser/profiles/profile_keyed_service.h" |
| class GlobalError; |
| +class Profile; |
| // This service manages a list of errors that are meant to be shown globally. |
| // If an error applies to an entire profile and not just to a tab then the |
| @@ -20,7 +21,7 @@ class GlobalError; |
| // - a sync error occurred |
| class GlobalErrorService : public ProfileKeyedService { |
|
Elliot Glaysher
2011/09/19 19:16:06
Global Profile errors? rly?
sail
2011/09/19 19:19:59
I hate naming things.
|
| public: |
| - GlobalErrorService(); |
| + explicit GlobalErrorService(Profile* profile); |
| virtual ~GlobalErrorService(); |
| // Adds the given error to the list of global errors and displays it on |
| @@ -48,8 +49,14 @@ class GlobalErrorService : public ProfileKeyedService { |
| // Gets all errors. |
| const std::vector<GlobalError*>& errors() { return errors_; } |
| + // Post a notification that a global error has changed and that the error UI |
| + // should update it self. Pass NULL for the given error to mean all error UIs |
| + // should update. |
| + void NotifyErrorsChanged(GlobalError* error); |
| + |
| private: |
| std::vector<GlobalError*> errors_; |
| + Profile* profile_; |
| DISALLOW_COPY_AND_ASSIGN(GlobalErrorService); |
| }; |