Do not use icon url when showing notification

This commit is contained in:
Cheng Zhao 2015-12-24 20:03:54 +08:00
parent 53e8c8841b
commit 513b6ae0d6
4 changed files with 54 additions and 11 deletions

View file

@ -16,8 +16,13 @@
#ifndef BRIGHTRAY_BROWSER_WIN_NOTIFICATION_PRESENTER_WIN_H_
#define BRIGHTRAY_BROWSER_WIN_NOTIFICATION_PRESENTER_WIN_H_
#include <string>
#include "base/files/scoped_temp_dir.h"
#include "browser/notification_presenter.h"
class GURL;
namespace brightray {
class NotificationPresenterWin : public NotificationPresenter {
@ -25,6 +30,8 @@ class NotificationPresenterWin : public NotificationPresenter {
NotificationPresenterWin();
~NotificationPresenterWin();
bool Init();
void ShowNotification(
const content::PlatformNotificationData&,
const SkBitmap& icon,
@ -32,6 +39,10 @@ class NotificationPresenterWin : public NotificationPresenter {
base::Closure* cancel_callback) override;
private:
std::wstring SaveIconToFilesystem(const SkBitmap& icon, const GURL& origin);
base::ScopedTempDir temp_dir_;
DISALLOW_COPY_AND_ASSIGN(NotificationPresenterWin);
};