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

Unified Diff: chrome/browser/ui/google_now/google_now_notification_delegate.cc

Issue 11633013: Parsing server response and showing notifications for Google Now (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/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;
+}
« no previous file with comments | « chrome/browser/ui/google_now/google_now_notification_delegate.h ('k') | chrome/browser/ui/google_now/google_now_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698