OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_ |
| 7 |
| 8 namespace content { |
| 9 |
| 10 // This enum is also used for UMA purposes, so it needs to adhere to |
| 11 // the UMA guidelines. |
| 12 // Make sure you update histograms.xml if you add new permission types. |
| 13 // Never delete or reorder an entry; only add new entries |
| 14 // immediately before PERMISSION_NUM |
| 15 enum PermissionType { |
| 16 PERMISSION_MIDI_SYSEX = 1, |
| 17 PERMISSION_PUSH_MESSAGING = 2, |
| 18 PERMISSION_NOTIFICATIONS = 3, |
| 19 PERMISSION_GEOLOCATION = 4, |
| 20 PERMISSION_PROTECTED_MEDIA = 5, |
| 21 |
| 22 // Always keep this at the end. |
| 23 PERMISSION_NUM, |
| 24 }; |
| 25 |
| 26 } // namespace content |
| 27 |
| 28 #endif // CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_ |
OLD | NEW |