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

Unified Diff: content/public/browser/permission_type.h

Issue 622793002: Group the different permission related methods in the content api. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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: content/public/browser/permission_type.h
diff --git a/content/public/browser/permission_type.h b/content/public/browser/permission_type.h
new file mode 100644
index 0000000000000000000000000000000000000000..1a3b261723261088caa41603a6918bc755ac78db
--- /dev/null
+++ b/content/public/browser/permission_type.h
@@ -0,0 +1,28 @@
+// Copyright 2014 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 CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_
+#define CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_
+
+namespace content {
+
+// This enum is also used for UMA purposes, so it needs to adhere to
+// the UMA guidelines.
+// Make sure you update histograms.xml if you add new permission types.
+// Never delete or reorder an entry; only add new entries
+// immediately before PERMISSION_NUM
+enum PermissionType {
+ PERMISSION_MIDI_SYSEX = 1,
+ PERMISSION_PUSH_MESSAGING = 2,
+ PERMISSION_NOTIFICATIONS = 3,
+ PERMISSION_GEOLOCATION = 4,
+ PERMISSION_PROTECTED_MEDIA = 5,
+
+ // Always keep this at the end.
+ PERMISSION_NUM,
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_

Powered by Google App Engine
This is Rietveld 408576698