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

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: Synced Notifications - CR changes per Zea and DCheng 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) 2013 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 #ifndef CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_
6 #define CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_
7
8 #include "chrome/browser/notifications/notification_delegate.h"
9
10 namespace notifier {
11
12 // ChromeNotifierDelegate is a NotificationDelegate which catches
13 // responses from the NotificationUIManager when a notification
14 // has been closed.
15
16 class ChromeNotifierDelegate : public NotificationDelegate {
17 public:
18 explicit ChromeNotifierDelegate(const std::string& id);
dcheng 2013/01/23 18:39:43 Formatting.
Pete Williamson 2013/01/24 01:48:11 Done.
19
20 // NotificationDelegate interface.
21 virtual void Display() OVERRIDE {}
22 virtual void Error() OVERRIDE {}
23 virtual void Close(bool by_user) OVERRIDE;
24 virtual void Click() OVERRIDE {}
25 virtual std::string id() const OVERRIDE { return id_; }
26 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE {
27 return NULL;
28 }
29
30 private:
31 virtual ~ChromeNotifierDelegate();
32
33 const std::string id_;
34
35 DISALLOW_COPY_AND_ASSIGN(ChromeNotifierDelegate);
36 };
37
38 } // namespace notifier
39
40 #endif // CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698