Chromium Code Reviews| Index: chrome/browser/notifications/notification_permission_context.h |
| diff --git a/chrome/browser/notifications/notification_permission_context.h b/chrome/browser/notifications/notification_permission_context.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4901a3f9ff12195cdb3a056375bc953549c0ac63 |
| --- /dev/null |
| +++ b/chrome/browser/notifications/notification_permission_context.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PERMISSION_CONTEXT_H_ |
| +#define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PERMISSION_CONTEXT_H_ |
| + |
| +#include "chrome/browser/content_settings/permission_context_base.h" |
| +#include "components/content_settings/core/common/content_settings.h" |
| + |
| +class GURL; |
| +class Profile; |
| + |
| +class NotificationPermissionContext : public PermissionContextBase { |
| + public: |
| + explicit NotificationPermissionContext(Profile* profile); |
| + ~NotificationPermissionContext() override; |
| + |
| + private: |
| + // PermissionContextBase implementation. |
|
mlamouri (slow - plz ping)
2015/06/29 10:57:42
Could you implement ResetPermission() by calling D
Peter Beverloo
2015/06/29 12:54:21
Done.
|
| + void UpdateContentSetting(const GURL& requesting_origin, |
| + const GURL& embedder_origin, |
| + ContentSetting content_setting) override; |
| + bool IsRestrictedToSecureOrigins() const override; |
| +}; |
| + |
| +#endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PERMISSION_CONTEXT_H_ |