| Index: content/public/browser/chooser_permission_manager.h
|
| diff --git a/content/public/browser/chooser_permission_manager.h b/content/public/browser/chooser_permission_manager.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..90cfabe7cc2831f509fe485a12b1fbf7d1aeabee
|
| --- /dev/null
|
| +++ b/content/public/browser/chooser_permission_manager.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2016 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 CONTENT_PUBLIC_BROWSER_CHOOSER_PERMISSION_MANAGER_H_
|
| +#define CONTENT_PUBLIC_BROWSER_CHOOSER_PERMISSION_MANAGER_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "content/common/content_export.h"
|
| +
|
| +class GURL;
|
| +
|
| +namespace content {
|
| +
|
| +class CONTENT_EXPORT ChooserPermissionManager {
|
| + public:
|
| + virtual ~ChooserPermissionManager() = default;
|
| +
|
| + virtual void GrantPermission(const GURL& requesting_origin,
|
| + const GURL& embedding_origin,
|
| + const std::string& id) = 0;
|
| +
|
| + virtual void RevokePermission(const GURL& requesting_origin,
|
| + const GURL& embedding_origin,
|
| + const std::string& id) = 0;
|
| +};
|
| +}
|
| +
|
| +#endif // CONTENT_PUBLIC_BROWSER_CHOOSER_PERMISSION_MANAGER_H_
|
|
|