Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1572)

Unified Diff: chrome/browser/printing/cloud_print/cloud_print_proxy_service.h

Issue 3436019: Added code in the browser process to display a Cloud Print token expired desk... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fixed Linux build Created 10 years, 3 months 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: 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);
};

Powered by Google App Engine
This is Rietveld 408576698