Chromium Code Reviews| Index: content/renderer/notification_permission_dispatcher.h |
| diff --git a/content/renderer/notification_permission_dispatcher.h b/content/renderer/notification_permission_dispatcher.h |
| deleted file mode 100644 |
| index 8b1eb58adfafb09bd00e1381b9455740589c6a96..0000000000000000000000000000000000000000 |
| --- a/content/renderer/notification_permission_dispatcher.h |
| +++ /dev/null |
| @@ -1,50 +0,0 @@ |
| -// Copyright 2014 The Chromium Authors. All rights reserved. |
|
Peter Beverloo
2016/08/22 14:54:46
Please remove the per-file rules from content/rend
Reilly Grant (use Gerrit)
2016/08/22 18:17:33
Done.
|
| -// Use of this source code is governed by a BSD-style license that can be |
| -// found in the LICENSE file. |
| - |
| -#ifndef CONTENT_RENDERER_NOTIFICATION_PERMISSION_DISPATCHER_H_ |
| -#define CONTENT_RENDERER_NOTIFICATION_PERMISSION_DISPATCHER_H_ |
| - |
| -#include <memory> |
| - |
| -#include "base/macros.h" |
| -#include "content/public/renderer/render_frame_observer.h" |
| -#include "third_party/WebKit/public/platform/modules/permissions/permission.mojom.h" |
| - |
| -namespace blink { |
| -class WebNotificationPermissionCallback; |
| -class WebSecurityOrigin; |
| -} |
| - |
| -namespace content { |
| - |
| -class RenderFrame; |
| - |
| -// Dispatcher for Web Notification permission requests. |
| -class NotificationPermissionDispatcher : public RenderFrameObserver { |
| - public: |
| - explicit NotificationPermissionDispatcher(RenderFrame* render_frame); |
| - ~NotificationPermissionDispatcher() override; |
| - |
| - // Requests permission to display Web Notifications for |origin|. The callback |
| - // will be invoked when the permission status is available. This class will |
| - // take ownership of |callback|. |
| - void RequestPermission(const blink::WebSecurityOrigin& origin, |
| - blink::WebNotificationPermissionCallback* callback); |
| - |
| - private: |
| - // RenderFrameObserver implementation. |
| - void OnDestruct() override; |
| - |
| - void OnPermissionRequestComplete( |
| - std::unique_ptr<blink::WebNotificationPermissionCallback> callback, |
| - blink::mojom::PermissionStatus status); |
| - |
| - blink::mojom::PermissionServicePtr permission_service_; |
| - |
| - DISALLOW_COPY_AND_ASSIGN(NotificationPermissionDispatcher); |
| -}; |
| - |
| -} // namespace content |
| - |
| -#endif // CONTENT_RENDERER_NOTIFICATION_PERMISSION_DISPATCHER_H_ |