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

Side by Side Diff: content/renderer/notification_provider.cc

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
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 #include "content/renderer/notification_provider.h" 5 #include "content/renderer/notification_provider.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/task.h"
9 #include "content/common/desktop_notification_messages.h" 8 #include "content/common/desktop_notification_messages.h"
10 #include "content/common/view_messages.h" 9 #include "content/common/view_messages.h"
11 #include "content/renderer/render_view_impl.h" 10 #include "content/renderer/render_view_impl.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPermis sionCallback.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPermis sionCallback.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
17 16
18 using WebKit::WebDocument; 17 using WebKit::WebDocument;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void NotificationProvider::OnPermissionRequestComplete(int id) { 166 void NotificationProvider::OnPermissionRequestComplete(int id) {
168 WebNotificationPermissionCallback* callback = manager_.GetCallback(id); 167 WebNotificationPermissionCallback* callback = manager_.GetCallback(id);
169 DCHECK(callback); 168 DCHECK(callback);
170 callback->permissionRequestComplete(); 169 callback->permissionRequestComplete();
171 manager_.OnPermissionRequestComplete(id); 170 manager_.OnPermissionRequestComplete(id);
172 } 171 }
173 172
174 void NotificationProvider::OnNavigate() { 173 void NotificationProvider::OnNavigate() {
175 manager_.Clear(); 174 manager_.Clear();
176 } 175 }
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | content/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698