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) |
| 22 | base::string16 PermissionRequest::GetChipText() const { |
| 23 | return base::string16(); |
| 24 | } |
| 25 | #endif |
| 26 | |
Yann Dago | 7858838 | 2020-03-10 16:47:20 | [diff] [blame] | 27 | base::string16 PermissionRequest::GetMessageTextWarningFragment() const { |
| 28 | return base::string16(); |
| 29 | } |
| 30 | |
Brandon Maslen | bc525b3 | 2020-04-02 03:02:29 | [diff] [blame] | 31 | GURL PermissionRequest::GetEmbeddingOrigin() const { |
| 32 | NOTREACHED(); |
| 33 | return GURL(); |
| 34 | } |
| 35 | |
Andy Paicu | a5972f3 | 2019-08-22 20:23:18 | [diff] [blame] | 36 | #if defined(OS_ANDROID) |
| 37 | base::string16 PermissionRequest::GetQuietTitleText() const { |
Andy Paicu | da2efde | 2020-02-01 06:49:25 | [diff] [blame] | 38 | return base::string16(); |
Andy Paicu | a5972f3 | 2019-08-22 20:23:18 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | base::string16 PermissionRequest::GetQuietMessageText() const { |
| 42 | return GetMessageText(); |
| 43 | } |
| 44 | #endif |
Clark DuVall | 484c256 | 2020-01-23 22:05:09 | [diff] [blame] | 45 | |
| 46 | } // namespace permissions |