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

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

Issue 580243004: Remove unnecessary image downloading handler of notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: re-upload 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
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 30 matching lines...) Expand all
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698