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

Side by Side Diff: chrome/browser/notifications/sync_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 Notification Change Processor - remove unused header Created 7 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_
7
8 #include <string>
9
10 #include "chrome/browser/notifications/notification_delegate.h"
11
12 namespace notifier {
13
14 // ChromeNotifierDelegate is a NotificationDelegate which catches
15 // responses from the NotificationUIManager when a notification
16 // has been closed.
17
18 class ChromeNotifierDelegate : public NotificationDelegate {
19 public:
20 explicit ChromeNotifierDelegate(const std::string& id);
21
22 // NotificationDelegate interface.
23 virtual void Display() OVERRIDE {}
24 virtual void Error() OVERRIDE {}
25 virtual void Close(bool by_user) OVERRIDE;
26 virtual void Click() OVERRIDE {}
27 virtual std::string id() const OVERRIDE;
28 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE;
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_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698