Index: chrome/browser/ui/google_now/google_now_notification_delegate.cc |
diff --git a/chrome/browser/ui/google_now/google_now_notification_delegate.cc b/chrome/browser/ui/google_now/google_now_notification_delegate.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..81741f2a04d280cd992b44dd341740ee3157f5ec |
--- /dev/null |
+++ b/chrome/browser/ui/google_now/google_now_notification_delegate.cc |
@@ -0,0 +1,30 @@ |
+// 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. |
+ |
+#include "chrome/browser/ui/google_now/google_now_notification_delegate.h" |
+ |
+#include "base/string_number_conversions.h" |
+ |
+using base::Uint64ToString; |
+using content::RenderViewHost; |
+ |
+namespace { |
+// Prefix for identifiers for GoogleNowNotificationDelegate class. |
+const char kGoogleNowNotificationPrefix[] = "google_now."; |
+} |
+ |
+uint64 GoogleNowNotificationDelegate::next_id_ = 0; |
+ |
+GoogleNowNotificationDelegate::GoogleNowNotificationDelegate() |
+ : id_(kGoogleNowNotificationPrefix + Uint64ToString(next_id_++)) { |
+} |
+ |
+std::string GoogleNowNotificationDelegate::id() const { |
+ return id_; |
+} |
+ |
+RenderViewHost* GoogleNowNotificationDelegate::GetRenderViewHost() const { |
+ // TODO(vadimt): Return a non-NULL RenderViewHost for rendering icons. |
+ return NULL; |
+} |