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

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

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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 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/Source/WebKit/chromium/public/WebNotification.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotification.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h"
12 12
13 class RenderViewImpl;
14
15 namespace WebKit { 13 namespace WebKit {
16 class WebNotificationPermissionCallback; 14 class WebNotificationPermissionCallback;
17 } 15 }
18 16
17 namespace content {
18 class RenderViewImpl;
19
19 // NotificationProvider class is owned by the RenderView. Only 20 // NotificationProvider class is owned by the RenderView. Only
20 // to be used on the main thread. 21 // to be used on the main thread.
21 class NotificationProvider : public content::RenderViewObserver, 22 class NotificationProvider : public RenderViewObserver,
22 public WebKit::WebNotificationPresenter { 23 public WebKit::WebNotificationPresenter {
23 public: 24 public:
24 explicit NotificationProvider(RenderViewImpl* render_view); 25 explicit NotificationProvider(RenderViewImpl* render_view);
25 virtual ~NotificationProvider(); 26 virtual ~NotificationProvider();
26 27
27 private: 28 private:
28 // RenderView::Observer implementation. 29 // RenderView::Observer implementation.
29 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
30 31
31 // WebKit::WebNotificationPresenter interface. 32 // WebKit::WebNotificationPresenter interface.
(...skipping 17 matching lines...) Expand all
49 void OnPermissionRequestComplete(int id); 50 void OnPermissionRequestComplete(int id);
50 void OnNavigate(); 51 void OnNavigate();
51 52
52 // A tracker object which manages the active notifications and the IDs 53 // A tracker object which manages the active notifications and the IDs
53 // that are used to refer to them over IPC. 54 // that are used to refer to them over IPC.
54 ActiveNotificationTracker manager_; 55 ActiveNotificationTracker manager_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(NotificationProvider); 57 DISALLOW_COPY_AND_ASSIGN(NotificationProvider);
57 }; 58 };
58 59
60 } // namespace content
61
59 #endif // CONTENT_RENDERER_NOTIFICATION_PROVIDER_H_ 62 #endif // CONTENT_RENDERER_NOTIFICATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/renderer/mouse_lock_dispatcher_browsertest.cc ('k') | content/renderer/notification_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698