blob: c7d940240e6b08a6efb37f251c761f722395a27e [file] [log] [blame]
Jinho Bang22de3a92018-02-27 18:16:221// Copyright 2017 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/browser/payments/payment_handler_permission_context.h"
6
Jinho Bangbad9b9292018-03-06 00:04:577#include "base/logging.h"
Jinho Bangbad9b9292018-03-06 00:04:578#include "chrome/browser/profiles/profile.h"
Jinho Bang22de3a92018-02-27 18:16:229#include "components/content_settings/core/common/content_settings_types.h"
Clark DuVall484c2562020-01-23 22:05:0910#include "components/permissions/permission_request_id.h"
Jinho Bangbad9b9292018-03-06 00:04:5711#include "content/public/browser/web_contents.h"
Blink Reformata30d4232018-04-07 15:31:0612#include "third_party/blink/public/mojom/feature_policy/feature_policy.mojom.h"
Jinho Bangbad9b9292018-03-06 00:04:5713#include "url/gurl.h"
Jinho Bang22de3a92018-02-27 18:16:2214
15namespace payments {
16
17PaymentHandlerPermissionContext::PaymentHandlerPermissionContext(
18 Profile* profile)
19 : PermissionContextBase(profile,
Darin Fisher42f5e7d2019-10-30 07:15:4520 ContentSettingsType::PAYMENT_HANDLER,
Jinho Bang22de3a92018-02-27 18:16:2221 blink::mojom::FeaturePolicyFeature::kNotFound) {}
22
23PaymentHandlerPermissionContext::~PaymentHandlerPermissionContext() {}
24
Jinho Bangbad9b9292018-03-06 00:04:5725void PaymentHandlerPermissionContext::DecidePermission(
26 content::WebContents* web_contents,
Clark DuVall484c2562020-01-23 22:05:09