blob: 7ba80986e6f36cf4b73f99c6acf20bb702fd0035 [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
Yann Dago78588382020-03-10 16:47:2021base::string16 PermissionRequest::GetMessageTextWarningFragment() const {
22 return base::string16();
23}
24
Brandon Maslenbc525b32020-04-02 03:02:2925GURL PermissionRequest::GetEmbeddingOrigin() const {
26 NOTREACHED();
27 return GURL();
28}
29
Andy Paicua5972f32019-08-22 20:23:1830#if defined(OS_ANDROID)
31base::string16 PermissionRequest::GetQuietTitleText() const {
Andy Paicuda2efde2020-02-01 06:49:2532 return base::string16();
Andy Paicua5972f32019-08-22 20:23:1833}
34
35base::string16 PermissionRequest::GetQuietMessageText() const {
36 return GetMessageText();
37}
38#endif
Clark DuVall484c2562020-01-23 22:05:0939
40} // namespace permissions