| OLD | NEW |
| 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 CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_ |
| 6 #define CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_ | 6 #define CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/tab_contents/tab_contents_observer.h" | 9 #include "content/browser/tab_contents/tab_contents_observer.h" |
| 10 | 10 |
| 11 struct ViewHostMsg_ShowNotification_Params; | 11 struct ViewHostMsg_ShowNotification_Params; |
| 12 class RenderProcessHost; | 12 class RenderProcessHost; |
| 13 | 13 |
| 14 // Per-tab Desktop notification handler. Handles desktop notification IPCs | 14 // Per-tab Desktop notification handler. Handles desktop notification IPCs |
| 15 // coming in from the renderer. | 15 // coming in from the renderer. |
| 16 class DesktopNotificationHandler { | 16 class DesktopNotificationHandler { |
| 17 public: | 17 public: |
| 18 // tab_contents will be NULL when this object is used with non-tab contents, | 18 // tab_contents will be NULL when this object is used with non-tab contents, |
| 19 // i.e. ExtensionHost. | 19 // i.e. ExtensionHost. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // TabContentsObserver implementation. | 55 // TabContentsObserver implementation. |
| 56 virtual bool OnMessageReceived(const IPC::Message& message); | 56 virtual bool OnMessageReceived(const IPC::Message& message); |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 DesktopNotificationHandler handler_; | 59 DesktopNotificationHandler handler_; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 #endif // CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_ | 62 #endif // CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_ |
| 63 | 63 |
| OLD | NEW |