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

Side by Side Diff: chrome/browser/notifications/notification_object_proxy.h

Issue 8539006: Cleanup: Remove unneeded forward declarations from various chrome/browser subdirectories. (Closed) Base URL: svn://chrome-svn/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
OLDNEW
1 // Copyright (c) 2009 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 CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/notifications/notification_delegate.h" 11 #include "chrome/browser/notifications/notification_delegate.h"
12 12
13 class MessageLoop;
14 namespace IPC {
15 class Message;
16 }
17
18 // A NotificationObjectProxy stands in for the JavaScript Notification object 13 // A NotificationObjectProxy stands in for the JavaScript Notification object
19 // which corresponds to a notification toast on the desktop. It can be signaled 14 // which corresponds to a notification toast on the desktop. It can be signaled
20 // when various events occur regarding the desktop notification, and the 15 // when various events occur regarding the desktop notification, and the
21 // attached JS listeners will be invoked in the renderer or worker process. 16 // attached JS listeners will be invoked in the renderer or worker process.
22 class NotificationObjectProxy 17 class NotificationObjectProxy
23 : public NotificationDelegate { 18 : public NotificationDelegate {
24 public: 19 public:
25 // Creates a Proxy object with the necessary callback information. 20 // Creates a Proxy object with the necessary callback information.
26 NotificationObjectProxy(int process_id, int route_id, 21 NotificationObjectProxy(int process_id, int route_id,
27 int notification_id, bool worker); 22 int notification_id, bool worker);
(...skipping 12 matching lines...) Expand all
40 35
41 private: 36 private:
42 // Callback information to find the JS Notification object where it lives. 37 // Callback information to find the JS Notification object where it lives.
43 int process_id_; 38 int process_id_;
44 int route_id_; 39 int route_id_;
45 int notification_id_; 40 int notification_id_;
46 bool worker_; 41 bool worker_;
47 }; 42 };
48 43
49 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_ 44 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/desktop_notification_service.h ('k') | chrome/browser/notifications/notification_ui_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698