OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/permissions/permission_request.h" | 5 #include "chrome/browser/permissions/permission_request.h" |
6 | 6 |
7 | 7 |
8 PermissionRequest::PermissionRequest() : persist_(true) {} | 8 PermissionRequest::PermissionRequest() : persist_(true) {} |
9 | 9 |
10 bool PermissionRequest::ShouldShowPersistenceToggle() const { | 10 bool PermissionRequest::ShouldShowPersistenceToggle() const { |
11 return false; | 11 return false; |
12 } | 12 } |
13 | 13 |
14 PermissionRequestType PermissionRequest::GetPermissionRequestType() const { | |
15 return PermissionRequestType::UNKNOWN; | |
16 } | |
17 | |
18 PermissionRequestGestureType PermissionRequest::GetGestureType() const { | 14 PermissionRequestGestureType PermissionRequest::GetGestureType() const { |
19 return PermissionRequestGestureType::UNKNOWN; | 15 return PermissionRequestGestureType::UNKNOWN; |
20 } | 16 } |
21 | 17 |
22 ContentSettingsType PermissionRequest::GetContentSettingsType() const { | 18 ContentSettingsType PermissionRequest::GetContentSettingsType() const { |
23 return CONTENT_SETTINGS_TYPE_DEFAULT; | 19 return CONTENT_SETTINGS_TYPE_DEFAULT; |
24 } | 20 } |
OLD | NEW |