blob: 42e1363599b0e0fb40fc31ea28412053c391e5e3 [file] [log] [blame]
tsergeant58defcfb2016-07-19 23:47:281// Copyright 2015 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
Clark DuVall484c2562020-01-23 22:05:095#include "components/permissions/permission_request.h"
Hans Wennborgdf87046c2020-04-28 11:06:246#include "base/notreached.h"
Andy Paicua5972f32019-08-22 20:23:187#include "build/build_config.h"
tsergeant58defcfb2016-07-19 23:47:288
Clark DuVall484c2562020-01-23 22:05:099namespace permissions {
10
Timothy Lohf4caae012017-11-27 05:36:0011PermissionRequest::PermissionRequest() {}
dominicknd4e446a2016-09-13 07:44:1312
benwells471d1f12016-07-25 23:58:0413PermissionRequestGestureType PermissionRequest::GetGestureType() const {
14 return PermissionRequestGestureType::UNKNOWN;
15}
lshangada00c12016-10-17 04:51:1016
17ContentSettingsType PermissionRequest::GetContentSettingsType() const {
Darin Fisher42f5e7d2019-10-30 07:15:4518 return ContentSettingsType::DEFAULT;
lshangada00c12016-10-17 04:51:1019}
Andy Paicua5972f32019-08-22 20:23:1820
Olesia Marukhnof8a4bed82020-06-17 13:35:3121#if !defined(OS_ANDROID)
Bret Sepulveda55f43dec2020-09-27 22:58:5622base::Optional<base::string16> PermissionRequest::GetChipText() const {
23 return base::nullopt;
Olesia Marukhnof8a4bed82020-06-17 13:35:3124}
25#endif
26
Andy Paicua5972f32019-08-22 20:23:1827#if defined(OS_ANDROID)
28base::string16 PermissionRequest::GetQuietTitleText() const {
Andy Paicuda2efde2020-02-01 06:49:2529 return base::string16();
Andy Paicua5972f32019-08-22 20:23:1830}
31
32base::string16 PermissionRequest::GetQuietMessageText() const {
33 return GetMessageText();
34}
35#endif
Clark DuVall484c2562020-01-23 22:05:0936
37} // namespace permissions