Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: chrome/browser/permissions/permission_util.h

Issue 1388343003: Adds a field trial to control Web API kill switches. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..4fdd2e56e992a65fa68dd517177d37d127a8f2b3
--- /dev/null
+++ b/chrome/browser/permissions/permission_util.h
@@ -0,0 +1,23 @@
+// 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 <string>
+
+#include "base/macros.h"
+#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 std::string GetPermissionString(ContentSettingsType permission);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionUtil);
+};
+
+#endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UTIL_H_
« no previous file with comments | « chrome/browser/permissions/permission_context_uma_util.cc ('k') | chrome/browser/permissions/permission_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698