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

Side by Side 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: Fix blink tests Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
(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 #ifndef CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_
5 #define CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_
6
7 namespace content {
8
9 // This enum is also used for UMA purposes, so it needs to adhere to
10 // the UMAa guidelines.
Bernhard Bauer 2014/10/23 08:38:01 Nit: UMA
Miguel Garcia 2014/10/23 12:48:11 Done.
11 // Make sure you update histograms.xml if you add new permission types.
12 // Never delete or reorder an entry; only add new entries
13 // immediately before PERMISSION_NUM
14 enum PermissionType {
15 PERMISSION_UNKNOWN = 0,
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 #endif // CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698