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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/google_now/google_now_notification_delegate.h"
6
7 #include "base/string_number_conversions.h"
8
9 using base::Uint64ToString;
10 using content::RenderViewHost;
11
12 namespace {
13 // Prefix for identifiers for GoogleNowNotificationDelegate class.
14 const char kGoogleNowNotificationPrefix[] = "google_now.";
15 }
16
17 uint64 GoogleNowNotificationDelegate::next_id_ = 0;
18
19 GoogleNowNotificationDelegate::GoogleNowNotificationDelegate()
20 : id_(kGoogleNowNotificationPrefix + Uint64ToString(next_id_++)) {
21 }
22
23 std::string GoogleNowNotificationDelegate::id() const {
24 return id_;
25 }
26
27 RenderViewHost* GoogleNowNotificationDelegate::GetRenderViewHost() const {
28 // TODO(vadimt): Return a non-NULL RenderViewHost for rendering icons.
29 return NULL;
30 }
OLDNEW
« 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