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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 51 |
52 int NotificationObjectProxy::process_id() const { | |
53 return render_process_id_; | |
54 } | |
55 | |
56 content::WebContents* NotificationObjectProxy::GetWebContents() const { | 52 content::WebContents* NotificationObjectProxy::GetWebContents() const { |
57 return content::WebContents::FromRenderFrameHost( | 53 return content::WebContents::FromRenderFrameHost( |
58 content::RenderFrameHost::FromID(render_process_id_, render_frame_id_)); | 54 content::RenderFrameHost::FromID(render_process_id_, render_frame_id_)); |
59 } | 55 } |
OLD | NEW |