tsergeant | 58defcfb | 2016-07-19 23:47:28 | [diff] [blame] | 1 | // 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 DuVall | 484c256 | 2020-01-23 22:05:09 | [diff] [blame] | 5 | #include "components/permissions/permission_request.h" |
Hans Wennborg | df87046c | 2020-04-28 11:06:24 | [diff] [blame] | 6 | #include "base/notreached.h" |
Andy Paicu | a5972f3 | 2019-08-22 20:23:18 | [diff] [blame] | 7 | #include "build/build_config.h" |
tsergeant | 58defcfb | 2016-07-19 23:47:28 | [diff] [blame] | 8 | |
Clark DuVall | 484c256 | 2020-01-23 22:05:09 | [diff] [blame] | 9 | namespace permissions { |
| 10 | |
Timothy Loh | f4caae01 | 2017-11-27 05:36:00 | [diff] [blame] | 11 | PermissionRequest::PermissionRequest() {} |
dominickn | d4e446a | 2016-09-13 07:44:13 | [diff] [blame] | 12 | |
benwells | 471d1f1 | 2016-07-25 23:58:04 | [diff] [blame] | 13 | PermissionRequestGestureType PermissionRequest::GetGestureType() const { |
| 14 | return PermissionRequestGestureType::UNKNOWN; |
| 15 | } |
lshang | ada00c1 | 2016-10-17 04:51:10 | [diff] [blame] | 16 | |
| 17 | ContentSettingsType PermissionRequest::GetContentSettingsType() const { |
Darin Fisher | 42f5e7d | 2019-10-30 07:15:45 | [diff] [blame] | 18 | return ContentSettingsType::DEFAULT; |
lshang | ada00c1 | 2016-10-17 04:51:10 | [diff] [blame] | 19 | } |
Andy Paicu | a5972f3 | 2019-08-22 20:23:18 | [diff] [blame] | 20 | |
Olesia Marukhno | f8a4bed8 | 2020-06-17 13:35:31 | [diff] [blame] | 21 | #if !defined(OS_ANDROID) |
Bret Sepulveda | 55f43dec | 2020-09-27 22:58:56 | [diff] [blame] | 22 | base::Optional<base::string16> PermissionRequest::GetChipText() const { |
| 23 | return base::nullopt; |
Olesia Marukhno | f8a4bed8 | 2020-06-17 13:35:31 | [diff] [blame] | 24 | } |
| 25 | #endif |
| 26 | |
Andy Paicu | a5972f3 | 2019-08-22 20:23:18 | [diff] [blame] | 27 | #if defined(OS_ANDROID) |
| 28 | base::string16 PermissionRequest::GetQuietTitleText() const { |
Andy Paicu | da2efde | 2020-02-01 06:49:25 | [diff] [blame] | 29 | return base::string16(); |
Andy Paicu | a5972f3 | 2019-08-22 20:23:18 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | base::string16 PermissionRequest::GetQuietMessageText() const { |
| 33 | return GetMessageText(); |
| 34 | } |
| 35 | #endif |
Clark DuVall | 484c256 | 2020-01-23 22:05:09 | [diff] [blame] | 36 | |
| 37 | } // namespace permissions |