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

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

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month 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/renderer/notification_provider.h ('k') | chrome/renderer/print_web_view_helper.h » ('j') | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/renderer/notification_provider.h" 5 #include "chrome/renderer/notification_provider.h"
6 6
7 #include "base/task.h" 7 #include "base/task.h"
8 #include "chrome/common/render_messages.h" 8 #include "chrome/common/render_messages.h"
9 #include "chrome/renderer/render_thread.h" 9 #include "chrome/renderer/render_thread.h"
10 #include "chrome/renderer/render_view.h" 10 #include "chrome/renderer/render_view.h"
11 #include "webkit/api/public/WebFrame.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h"
12 #include "webkit/api/public/WebNotificationPermissionCallback.h" 12 #include "third_party/WebKit/WebKit/chromium/public/WebNotificationPermissionCal lback.h"
13 13
14 using WebKit::WebNotification; 14 using WebKit::WebNotification;
15 using WebKit::WebNotificationPresenter; 15 using WebKit::WebNotificationPresenter;
16 using WebKit::WebNotificationPermissionCallback; 16 using WebKit::WebNotificationPermissionCallback;
17 using WebKit::WebString; 17 using WebKit::WebString;
18 18
19 NotificationProvider::NotificationProvider(RenderView* view) 19 NotificationProvider::NotificationProvider(RenderView* view)
20 : view_(view) { 20 : view_(view) {
21 } 21 }
22 22
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void NotificationProvider::OnPermissionRequestComplete(int id) { 122 void NotificationProvider::OnPermissionRequestComplete(int id) {
123 WebNotificationPermissionCallback* callback = manager_.GetCallback(id); 123 WebNotificationPermissionCallback* callback = manager_.GetCallback(id);
124 DCHECK(callback); 124 DCHECK(callback);
125 callback->permissionRequestComplete(); 125 callback->permissionRequestComplete();
126 manager_.OnPermissionRequestComplete(id); 126 manager_.OnPermissionRequestComplete(id);
127 } 127 }
128 128
129 bool NotificationProvider::Send(IPC::Message* message) { 129 bool NotificationProvider::Send(IPC::Message* message) {
130 return RenderThread::current()->Send(message); 130 return RenderThread::current()->Send(message);
131 } 131 }
OLDNEW
« no previous file with comments | « chrome/renderer/notification_provider.h ('k') | chrome/renderer/print_web_view_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698