| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/shell/renderer/test_runner/notification_presenter.h" | 5 #include "content/shell/renderer/test_runner/notification_presenter.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/common/desktop_notification_messages.h" | 8 #include "content/common/desktop_notification_messages.h" |
| 9 #include "content/shell/renderer/test_runner/WebTestDelegate.h" | 9 #include "content/shell/renderer/test_runner/WebTestDelegate.h" |
| 10 #include "third_party/WebKit/public/platform/Platform.h" | 10 #include "third_party/WebKit/public/platform/Platform.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 std::string title = notification.title().utf8(); | 123 std::string title = notification.title().utf8(); |
| 124 active_notifications_.erase(title); | 124 active_notifications_.erase(title); |
| 125 } | 125 } |
| 126 | 126 |
| 127 WebNotificationPresenter::Permission NotificationPresenter::checkPermission( | 127 WebNotificationPresenter::Permission NotificationPresenter::checkPermission( |
| 128 const WebSecurityOrigin& security_origin) { | 128 const WebSecurityOrigin& security_origin) { |
| 129 return delegate_->checkWebNotificationPermission( | 129 return delegate_->checkWebNotificationPermission( |
| 130 GURL(security_origin.toString())); | 130 GURL(security_origin.toString())); |
| 131 } | 131 } |
| 132 | 132 |
| 133 void NotificationPresenter::requestPermission( | |
| 134 const WebSecurityOrigin& security_origin, | |
| 135 WebNotificationPermissionCallback* callback) { | |
| 136 NOTREACHED(); | |
| 137 } | |
| 138 | |
| 139 } // namespace content | 133 } // namespace content |
| OLD | NEW |