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

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

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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
« no previous file with comments | « content/renderer/mhtml_generator.h ('k') | content/renderer/p2p/ipc_socket_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "content/public/renderer/render_view_observer.h" 9 #include "content/public/renderer/render_view_observer.h"
10 #include "content/renderer/active_notification_tracker.h" 10 #include "content/renderer/active_notification_tracker.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotification.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotification.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h"
13 13
14 class RenderViewImpl; 14 class RenderViewImpl;
15 15
16 namespace WebKit { 16 namespace WebKit {
17 class WebNotificationPermissionCallback; 17 class WebNotificationPermissionCallback;
18 } 18 }
19 19
20 // NotificationProvider class is owned by the RenderView. Only 20 // NotificationProvider class is owned by the RenderView. Only
21 // to be used on the main thread. 21 // to be used on the main thread.
22 class NotificationProvider : public content::RenderViewObserver, 22 class NotificationProvider : public content::RenderViewObserver,
23 public WebKit::WebNotificationPresenter { 23 public WebKit::WebNotificationPresenter {
24 public: 24 public:
25 explicit NotificationProvider(RenderViewImpl* render_view); 25 explicit NotificationProvider(RenderViewImpl* render_view);
26 virtual ~NotificationProvider(); 26 virtual ~NotificationProvider();
27 27
28 private: 28 private:
29 // RenderView::Observer implementation. 29 // RenderView::Observer implementation.
30 virtual bool OnMessageReceived(const IPC::Message& message); 30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
31 31
32 // WebKit::WebNotificationPresenter interface. 32 // WebKit::WebNotificationPresenter interface.
33 virtual bool show(const WebKit::WebNotification& proxy); 33 virtual bool show(const WebKit::WebNotification& proxy);
34 virtual void cancel(const WebKit::WebNotification& proxy); 34 virtual void cancel(const WebKit::WebNotification& proxy);
35 virtual void objectDestroyed(const WebKit::WebNotification& proxy); 35 virtual void objectDestroyed(const WebKit::WebNotification& proxy);
36 virtual WebKit::WebNotificationPresenter::Permission checkPermission( 36 virtual WebKit::WebNotificationPresenter::Permission checkPermission(
37 const WebKit::WebSecurityOrigin& origin); 37 const WebKit::WebSecurityOrigin& origin);
38 virtual void requestPermission(const WebKit::WebSecurityOrigin& origin, 38 virtual void requestPermission(const WebKit::WebSecurityOrigin& origin,
39 WebKit::WebNotificationPermissionCallback* callback); 39 WebKit::WebNotificationPermissionCallback* callback);
40 40
(...skipping 10 matching lines...) Expand all
51 void OnNavigate(); 51 void OnNavigate();
52 52
53 // A tracker object which manages the active notifications and the IDs 53 // A tracker object which manages the active notifications and the IDs
54 // that are used to refer to them over IPC. 54 // that are used to refer to them over IPC.
55 ActiveNotificationTracker manager_; 55 ActiveNotificationTracker manager_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(NotificationProvider); 57 DISALLOW_COPY_AND_ASSIGN(NotificationProvider);
58 }; 58 };
59 59
60 #endif // CONTENT_RENDERER_NOTIFICATION_PROVIDER_H_ 60 #endif // CONTENT_RENDERER_NOTIFICATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/renderer/mhtml_generator.h ('k') | content/renderer/p2p/ipc_socket_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698