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

Side by Side Diff: chrome/browser/notifier/chrome_notifier_delegate.h

Issue 11745024: Synced Notification Sync Change Processor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: SyncedNotifications - first round of CR comment fixes. Created 7 years, 11 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 unified diff | Download patch
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 // ChromeNotifierDelegate is a NotificationDelegate which catches
6 // responses from the NotificationUIManager when a notification
7 // has been closed.
dcheng 2013/01/18 21:56:13 Typical convention is to place class comments abov
Pete Williamson 2013/01/23 01:45:55 Comment moved. Actually, we don't do the display,
8
9 #ifndef CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_
10 #define CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_
11
12 #include "chrome/browser/notifications/notification_delegate.h"
13
14 class ChromeNotifierDelegate : public NotificationDelegate {
15 public:
16 explicit ChromeNotifierDelegate(const std::string& id) :
17 id_(id) {}
dcheng 2013/01/18 21:56:13 Please move this to the .cc.
Pete Williamson 2013/01/23 01:45:55 Done.
18
19 // NotificationDelegate interface.
20 virtual void Display() OVERRIDE {}
21 virtual void Error() OVERRIDE {}
22 virtual void Close(bool by_user) OVERRIDE;
23 virtual void Click() OVERRIDE {}
24 virtual std::string id() const OVERRIDE { return id_; }
25 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE {
26 return NULL;
27 }
dcheng 2013/01/18 21:56:13 Fix indent. Or just move all the empty bodies to t
Pete Williamson 2013/01/23 01:45:55 indent fixed
28
29 private:
30 virtual ~ChromeNotifierDelegate() {}
dcheng 2013/01/18 21:56:13 Please move this to the .cc.
31
32 std::string id_;
dcheng 2013/01/18 21:56:13 const? This Or can this change?
Pete Williamson 2013/01/23 01:45:55 Done.
33
34 DISALLOW_COPY_AND_ASSIGN(ChromeNotifierDelegate);
35 };
36
37 #endif // CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698