| OLD | NEW |
| 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/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/task.h" | 8 #include "base/task.h" |
| 9 #include "chrome/common/render_messages.h" | 9 #include "chrome/common/render_messages.h" |
| 10 #include "chrome/common/render_messages_params.h" |
| 10 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
| 11 #include "chrome/renderer/render_thread.h" | 12 #include "chrome/renderer/render_thread.h" |
| 12 #include "chrome/renderer/render_view.h" | 13 #include "chrome/renderer/render_view.h" |
| 13 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" |
| 14 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
| 15 #include "third_party/WebKit/WebKit/chromium/public/WebNotificationPermissionCal
lback.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebNotificationPermissionCal
lback.h" |
| 16 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" |
| 17 #include "third_party/WebKit/WebKit/chromium/public/WebView.h" | 18 #include "third_party/WebKit/WebKit/chromium/public/WebView.h" |
| 18 | 19 |
| 19 using WebKit::WebDocument; | 20 using WebKit::WebDocument; |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 void NotificationProvider::OnPermissionRequestComplete(int id) { | 170 void NotificationProvider::OnPermissionRequestComplete(int id) { |
| 170 WebNotificationPermissionCallback* callback = manager_.GetCallback(id); | 171 WebNotificationPermissionCallback* callback = manager_.GetCallback(id); |
| 171 DCHECK(callback); | 172 DCHECK(callback); |
| 172 callback->permissionRequestComplete(); | 173 callback->permissionRequestComplete(); |
| 173 manager_.OnPermissionRequestComplete(id); | 174 manager_.OnPermissionRequestComplete(id); |
| 174 } | 175 } |
| 175 | 176 |
| 176 bool NotificationProvider::Send(IPC::Message* message) { | 177 bool NotificationProvider::Send(IPC::Message* message) { |
| 177 return RenderThread::current()->Send(message); | 178 return RenderThread::current()->Send(message); |
| 178 } | 179 } |
| OLD | NEW |