OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 |
(...skipping 21 matching lines...) Expand all Loading... |
32 virtual void Close(bool by_user); | 32 virtual void Close(bool by_user); |
33 virtual void Click(); | 33 virtual void Click(); |
34 virtual std::string id() const; | 34 virtual std::string id() const; |
35 | 35 |
36 protected: | 36 protected: |
37 friend class base::RefCountedThreadSafe<NotificationObjectProxy>; | 37 friend class base::RefCountedThreadSafe<NotificationObjectProxy>; |
38 | 38 |
39 virtual ~NotificationObjectProxy() {} | 39 virtual ~NotificationObjectProxy() {} |
40 | 40 |
41 private: | 41 private: |
42 // Called on UI thread to send a message. | |
43 void Send(IPC::Message* message); | |
44 | |
45 // Callback information to find the JS Notification object where it lives. | 42 // Callback information to find the JS Notification object where it lives. |
46 int process_id_; | 43 int process_id_; |
47 int route_id_; | 44 int route_id_; |
48 int notification_id_; | 45 int notification_id_; |
49 bool worker_; | 46 bool worker_; |
50 }; | 47 }; |
51 | 48 |
52 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_ | 49 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_ |
OLD | NEW |