| Index: chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.h
|
| diff --git a/chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.h b/chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..255f2051f4180adaafd128b8085aaecd9e0d497f
|
| --- /dev/null
|
| +++ b/chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright (c) 2013 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.
|
| +
|
| +#ifndef CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_
|
| +#define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "chrome/browser/notifications/notification_delegate.h"
|
| +
|
| +namespace notifier {
|
| +
|
| +// ChromeNotifierDelegate is a NotificationDelegate which catches
|
| +// responses from the NotificationUIManager when a notification
|
| +// has been closed.
|
| +
|
| +class ChromeNotifierDelegate : public NotificationDelegate {
|
| + public:
|
| + explicit ChromeNotifierDelegate(const std::string& id);
|
| +
|
| + // 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;
|
| + virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE;
|
| +
|
| + private:
|
| + virtual ~ChromeNotifierDelegate();
|
| +
|
| + const std::string id_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ChromeNotifierDelegate);
|
| +};
|
| +
|
| +} // namespace notifier
|
| +
|
| +#endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_
|
|
|