Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Side by Side Diff: chrome/browser/notifications/notification_object_proxy.cc

Issue 566093002: Remove NotificationDelegate::process_id(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/notifications/notification_object_proxy.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_object_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698