OLD | NEW |
(Empty) | |
| 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 |
| 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_UTIL_H_ |
| 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_UTIL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "components/content_settings/core/common/content_settings_types.h" |
| 12 |
| 13 // A utility class for permissions. |
| 14 class PermissionUtil { |
| 15 public: |
| 16 // Returns the permission string for the given ContentSettingsType. |
| 17 static std::string GetPermissionString(ContentSettingsType permission); |
| 18 |
| 19 private: |
| 20 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionUtil); |
| 21 }; |
| 22 |
| 23 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UTIL_H_ |
OLD | NEW |