| Index: chrome/browser/printing/cloud_print/cloud_print_proxy_service.h
|
| ===================================================================
|
| --- chrome/browser/printing/cloud_print/cloud_print_proxy_service.h (revision 59251)
|
| +++ chrome/browser/printing/cloud_print/cloud_print_proxy_service.h (working copy)
|
| @@ -10,9 +10,8 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/observer_list.h"
|
| -#include "chrome/browser/profile.h"
|
| +#include "base/ref_counted.h"
|
|
|
| -
|
| class Profile;
|
|
|
| // Layer between the browser user interface and the cloud print proxy code
|
| @@ -30,9 +29,23 @@
|
| virtual void EnableForUser(const std::string& auth_token);
|
| virtual void DisableForUser();
|
|
|
| - protected:
|
| + bool ShowTokenExpiredNotification();
|
| +
|
| + private:
|
| + // NotificationDelegate implementation for the token expired notification.
|
| + class TokenExpiredNotificationDelegate;
|
| + friend class TokenExpiredNotificationDelegate;
|
| +
|
| + Profile* profile_;
|
| + scoped_refptr<TokenExpiredNotificationDelegate> token_expired_delegate_;
|
| +
|
| void Shutdown();
|
| + void OnTokenExpiredNotificationError();
|
| + void OnTokenExpiredNotificationClosed(bool by_user);
|
| + void OnTokenExpiredNotificationClick();
|
| + void TokenExpiredNotificationDone();
|
|
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyService);
|
| };
|
|
|
|
|