Index: chrome/browser/ui/google_now/google_now_notification_delegate.h |
diff --git a/chrome/browser/ui/google_now/google_now_notification_delegate.h b/chrome/browser/ui/google_now/google_now_notification_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..58cd8c5208a3976abc592b9bd99c678928c38dee |
--- /dev/null |
+++ b/chrome/browser/ui/google_now/google_now_notification_delegate.h |
@@ -0,0 +1,32 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_GOOGLE_NOW_GOOGLE_NOW_NOTIFICATION_DELEGATE_H_ |
+#define CHROME_BROWSER_UI_GOOGLE_NOW_GOOGLE_NOW_NOTIFICATION_DELEGATE_H_ |
+ |
+#include "chrome/browser/notifications/notification_delegate.h" |
+ |
+// Delegate for Google Now notifications. |
+class GoogleNowNotificationDelegate : public NotificationDelegate { |
+ public: |
+ GoogleNowNotificationDelegate(); |
+ |
+ // NotificationDelegate |
+ virtual void Display() OVERRIDE {} |
+ virtual void Error() OVERRIDE {} |
+ virtual void Close(bool by_user) OVERRIDE {} |
+ virtual void Click() OVERRIDE {} |
+ virtual std::string id() const OVERRIDE; |
+ virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE; |
+ |
+ private: |
+ virtual ~GoogleNowNotificationDelegate() {} |
+ |
+ // Generator of unique numbers for notification identifiers. |
+ static uint64 next_id_; |
+ // Unique identifier of this notification delegate. |
+ const std::string id_; |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_GOOGLE_NOW_GOOGLE_NOW_NOTIFICATION_DELEGATE_H_ |