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

Unified Diff: chrome/renderer/notification_provider.h

Issue 6703003: Move a bunch of html5 renderer code to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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
« no previous file with comments | « chrome/renderer/indexed_db_dispatcher.cc ('k') | chrome/renderer/notification_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/notification_provider.h
===================================================================
--- chrome/renderer/notification_provider.h (revision 78436)
+++ chrome/renderer/notification_provider.h (working copy)
@@ -1,58 +0,0 @@
-// Copyright (c) 2010 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_RENDERER_NOTIFICATION_PROVIDER_H_
-#define CHROME_RENDERER_NOTIFICATION_PROVIDER_H_
-#pragma once
-
-#include "chrome/common/desktop_notifications/active_notification_tracker.h"
-#include "chrome/renderer/render_view_observer.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebNotification.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresenter.h"
-
-namespace WebKit {
-class WebNotificationPermissionCallback;
-}
-
-// NotificationProvider class is owned by the RenderView. Only
-// to be used on the main thread.
-class NotificationProvider : public RenderViewObserver,
- public WebKit::WebNotificationPresenter {
- public:
- explicit NotificationProvider(RenderView* render_view);
- virtual ~NotificationProvider();
-
- private:
- // RenderView::Observer implementation.
- virtual bool OnMessageReceived(const IPC::Message& message);
-
- // WebKit::WebNotificationPresenter interface.
- virtual bool show(const WebKit::WebNotification& proxy);
- virtual void cancel(const WebKit::WebNotification& proxy);
- virtual void objectDestroyed(const WebKit::WebNotification& proxy);
- virtual WebKit::WebNotificationPresenter::Permission checkPermission(
- const WebKit::WebURL& url);
- virtual void requestPermission(const WebKit::WebSecurityOrigin& origin,
- WebKit::WebNotificationPermissionCallback* callback);
-
- // Internal methods used to show notifications.
- bool ShowHTML(const WebKit::WebNotification& notification, int id);
- bool ShowText(const WebKit::WebNotification& notification, int id);
-
- // IPC handlers.
- void OnDisplay(int id);
- void OnError(int id, const WebKit::WebString& message);
- void OnClose(int id, bool by_user);
- void OnClick(int id);
- void OnPermissionRequestComplete(int id);
- void OnNavigate();
-
- // A tracker object which manages the active notifications and the IDs
- // that are used to refer to them over IPC.
- ActiveNotificationTracker manager_;
-
- DISALLOW_COPY_AND_ASSIGN(NotificationProvider);
-};
-
-#endif // CHROME_RENDERER_NOTIFICATION_PROVIDER_H_
« no previous file with comments | « chrome/renderer/indexed_db_dispatcher.cc ('k') | chrome/renderer/notification_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698