| 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 #include "chrome/browser/notifications/notification_object_proxy.h" | 5 #include "chrome/browser/notifications/notification_object_proxy.h" |
| 6 | 6 |
| 7 #include "base/guid.h" | 7 #include "base/guid.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "content/public/browser/desktop_notification_delegate.h" | 9 #include "content/public/browser/desktop_notification_delegate.h" |
| 10 #include "content/public/browser/render_frame_host.h" | 10 #include "content/public/browser/render_frame_host.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 delegate_->NotificationClosed(by_user); | 41 delegate_->NotificationClosed(by_user); |
| 42 } | 42 } |
| 43 | 43 |
| 44 void NotificationObjectProxy::Click() { | 44 void NotificationObjectProxy::Click() { |
| 45 delegate_->NotificationClick(); | 45 delegate_->NotificationClick(); |
| 46 } | 46 } |
| 47 | 47 |
| 48 std::string NotificationObjectProxy::id() const { | 48 std::string NotificationObjectProxy::id() const { |
| 49 return id_; | 49 return id_; |
| 50 } | 50 } |
| 51 | |
| 52 content::WebContents* NotificationObjectProxy::GetWebContents() const { | |
| 53 return content::WebContents::FromRenderFrameHost( | |
| 54 content::RenderFrameHost::FromID(render_process_id_, render_frame_id_)); | |
| 55 } | |
| OLD | NEW |