Chromium Code Reviews| Index: chrome/browser/permissions/permission_util.h |
| diff --git a/chrome/browser/permissions/permission_util.h b/chrome/browser/permissions/permission_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a6036027fb570bcf1aaa1473b025fe0554a2119a |
| --- /dev/null |
| +++ b/chrome/browser/permissions/permission_util.h |
| @@ -0,0 +1,21 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_UTIL_H_ |
| +#define CHROME_BROWSER_PERMISSIONS_PERMISSION_UTIL_H_ |
| + |
| +#include "base/logging.h" |
|
mlamouri (slow - plz ping)
2015/10/21 11:26:06
Why do you need logging.h?
kcarattini
2015/10/26 00:30:59
Moved to the .cc file, needed for NOTREACHED()
|
| +#include "components/content_settings/core/common/content_settings_types.h" |
| + |
| +// A utility class for permissions. |
| +class PermissionUtil { |
| + public: |
| + // Returns the permission string for the given ContentSettingsType. |
| + static const std::string GetPermissionString(ContentSettingsType permission); |
|
Bernhard Bauer
2015/10/21 10:29:04
The const is unnecessary, as the string is returne
kcarattini
2015/10/26 00:30:59
Done.
|
| + |
| + private: |
| + DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionUtil); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UTIL_H_ |