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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifier/chrome_notifier_delegate.h
diff --git a/chrome/browser/notifier/chrome_notifier_delegate.h b/chrome/browser/notifier/chrome_notifier_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..6a9e462874367b01cfddc92346d801edb9dfd3a1
--- /dev/null
+++ b/chrome/browser/notifier/chrome_notifier_delegate.h
@@ -0,0 +1,37 @@
+// 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.
+
+// ChromeNotifierDelegate is a NotificationDelegate which catches
+// responses from the NotificationUIManager when a notification
+// 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,
+
+#ifndef CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_
+#define CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_
+
+#include "chrome/browser/notifications/notification_delegate.h"
+
+class ChromeNotifierDelegate : public NotificationDelegate {
+ public:
+ explicit ChromeNotifierDelegate(const std::string& id) :
+ id_(id) {}
dcheng 2013/01/18 21:56:13 Please move this to the .cc.
Pete Williamson 2013/01/23 01:45:55 Done.
+
+ // NotificationDelegate interface.
+ virtual void Display() OVERRIDE {}
+ virtual void Error() OVERRIDE {}
+ virtual void Close(bool by_user) OVERRIDE;
+ virtual void Click() OVERRIDE {}
+ virtual std::string id() const OVERRIDE { return id_; }
+ virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE {
+ return NULL;
+}
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
+
+ private:
+ virtual ~ChromeNotifierDelegate() {}
dcheng 2013/01/18 21:56:13 Please move this to the .cc.
+
+ 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.
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeNotifierDelegate);
+};
+
+#endif // CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698