OLD | NEW |
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 CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DELEGATE_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DELEGATE_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DELEGATE_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
12 | 11 |
13 namespace content { | 12 namespace content { |
14 class RenderViewHost; | 13 class RenderViewHost; |
15 } | 14 } |
16 | 15 |
17 // Delegate for a notification. This class has two role, to implement | 16 // Delegate for a notification. This class has two role, to implement |
(...skipping 23 matching lines...) Expand all Loading... |
41 virtual content::RenderViewHost* GetRenderViewHost() const = 0; | 40 virtual content::RenderViewHost* GetRenderViewHost() const = 0; |
42 | 41 |
43 protected: | 42 protected: |
44 virtual ~NotificationDelegate() {} | 43 virtual ~NotificationDelegate() {} |
45 | 44 |
46 private: | 45 private: |
47 friend class base::RefCountedThreadSafe<NotificationDelegate>; | 46 friend class base::RefCountedThreadSafe<NotificationDelegate>; |
48 }; | 47 }; |
49 | 48 |
50 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DELEGATE_H_ | 49 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DELEGATE_H_ |
OLD | NEW |