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

Unified Diff: chrome/browser/desktop_notification_handler.h

Issue 7125006: Get rid of Chrome notifications dependency, and instead go through ContentBrowserClient to show U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browsertest Created 9 years, 6 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/desktop_notification_handler.h
===================================================================
--- chrome/browser/desktop_notification_handler.h (revision 88079)
+++ chrome/browser/desktop_notification_handler.h (working copy)
@@ -1,37 +0,0 @@
-// Copyright (c) 2011 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_DESKTOP_NOTIFICATION_HANDLER_H_
-#define CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_
-#pragma once
-
-#include "content/browser/renderer_host/render_view_host_observer.h"
-
-class GURL;
-struct DesktopNotificationHostMsg_Show_Params;
-
-// Per-tab Desktop notification handler. Handles desktop notification IPCs
-// coming in from the renderer.
-class DesktopNotificationHandler : public RenderViewHostObserver {
- public:
- static DesktopNotificationHandler* Create(RenderViewHost* render_view_host);
- virtual ~DesktopNotificationHandler();
-
- private:
- explicit DesktopNotificationHandler(RenderViewHost* render_view_host);
-
- // RenderViewHostObserver implementation.
- virtual bool OnMessageReceived(const IPC::Message& message);
-
- // IPC handlers.
- void OnShow(const DesktopNotificationHostMsg_Show_Params& params);
- void OnCancel(int notification_id);
- void OnRequestPermission(const GURL& origin, int callback_id);
-
- private:
- DISALLOW_COPY_AND_ASSIGN(DesktopNotificationHandler);
-};
-
-#endif // CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_
-

Powered by Google App Engine
This is Rietveld 408576698