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

Side by Side Diff: content/renderer/notification_provider.h

Issue 95223003: Remove plumbing for showing HTML notifications from content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_NOTIFICATION_PROVIDER_H_ 5 #ifndef CONTENT_RENDERER_NOTIFICATION_PROVIDER_H_
6 #define CONTENT_RENDERER_NOTIFICATION_PROVIDER_H_ 6 #define CONTENT_RENDERER_NOTIFICATION_PROVIDER_H_
7 7
8 #include "content/public/renderer/render_view_observer.h" 8 #include "content/public/renderer/render_view_observer.h"
9 #include "content/renderer/active_notification_tracker.h" 9 #include "content/renderer/active_notification_tracker.h"
10 #include "third_party/WebKit/public/web/WebNotification.h" 10 #include "third_party/WebKit/public/web/WebNotification.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // blink::WebNotificationPresenter interface. 32 // blink::WebNotificationPresenter interface.
33 virtual bool show(const blink::WebNotification& proxy); 33 virtual bool show(const blink::WebNotification& proxy);
34 virtual void cancel(const blink::WebNotification& proxy); 34 virtual void cancel(const blink::WebNotification& proxy);
35 virtual void objectDestroyed(const blink::WebNotification& proxy); 35 virtual void objectDestroyed(const blink::WebNotification& proxy);
36 virtual blink::WebNotificationPresenter::Permission checkPermission( 36 virtual blink::WebNotificationPresenter::Permission checkPermission(
37 const blink::WebSecurityOrigin& origin); 37 const blink::WebSecurityOrigin& origin);
38 virtual void requestPermission(const blink::WebSecurityOrigin& origin, 38 virtual void requestPermission(const blink::WebSecurityOrigin& origin,
39 blink::WebNotificationPermissionCallback* callback); 39 blink::WebNotificationPermissionCallback* callback);
40 40
41 // Internal methods used to show notifications.
42 bool ShowHTML(const blink::WebNotification& notification, int id);
43 bool ShowText(const blink::WebNotification& notification, int id);
44
45 // IPC handlers. 41 // IPC handlers.
46 void OnDisplay(int id); 42 void OnDisplay(int id);
47 void OnError(int id, const blink::WebString& message); 43 void OnError(int id, const blink::WebString& message);
48 void OnClose(int id, bool by_user); 44 void OnClose(int id, bool by_user);
49 void OnClick(int id); 45 void OnClick(int id);
50 void OnPermissionRequestComplete(int id); 46 void OnPermissionRequestComplete(int id);
51 void OnNavigate(); 47 void OnNavigate();
52 48
53 // A tracker object which manages the active notifications and the IDs 49 // A tracker object which manages the active notifications and the IDs
54 // that are used to refer to them over IPC. 50 // that are used to refer to them over IPC.
55 ActiveNotificationTracker manager_; 51 ActiveNotificationTracker manager_;
56 52
57 DISALLOW_COPY_AND_ASSIGN(NotificationProvider); 53 DISALLOW_COPY_AND_ASSIGN(NotificationProvider);
58 }; 54 };
59 55
60 } // namespace content 56 } // namespace content
61 57
62 #endif // CONTENT_RENDERER_NOTIFICATION_PROVIDER_H_ 58 #endif // CONTENT_RENDERER_NOTIFICATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/public/common/show_desktop_notification_params.cc ('k') | content/renderer/notification_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698