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

Side by Side Diff: chrome/browser/permissions/permission_request.h

Issue 2339093002: [HBD] Add Plugins permission type and PermissionContext (Closed)
Patch Set: [HBD] Add Plugins permission type and PermissionContext Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_ 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_ 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "content/public/browser/permission_type.h" 10 #include "content/public/browser/permission_type.h"
(...skipping 16 matching lines...) Expand all
27 UNUSED_PERMISSION, 27 UNUSED_PERMISSION,
28 QUOTA, 28 QUOTA,
29 DOWNLOAD, 29 DOWNLOAD,
30 MEDIA_STREAM, 30 MEDIA_STREAM,
31 REGISTER_PROTOCOL_HANDLER, 31 REGISTER_PROTOCOL_HANDLER,
32 PERMISSION_GEOLOCATION, 32 PERMISSION_GEOLOCATION,
33 PERMISSION_MIDI_SYSEX, 33 PERMISSION_MIDI_SYSEX,
34 PERMISSION_NOTIFICATIONS, 34 PERMISSION_NOTIFICATIONS,
35 PERMISSION_PROTECTED_MEDIA_IDENTIFIER, 35 PERMISSION_PROTECTED_MEDIA_IDENTIFIER,
36 PERMISSION_PUSH_MESSAGING, 36 PERMISSION_PUSH_MESSAGING,
37 PERMISSION_PLUGINS,
37 // NUM must be the last value in the enum. 38 // NUM must be the last value in the enum.
38 NUM 39 NUM
39 }; 40 };
40 41
41 // Used for UMA to record whether a gesture was associated with the request. For 42 // Used for UMA to record whether a gesture was associated with the request. For
42 // simplicity not all request types track whether a gesture is associated with 43 // simplicity not all request types track whether a gesture is associated with
43 // it or not, for these types of requests metrics are not recorded. 44 // it or not, for these types of requests metrics are not recorded.
44 enum class PermissionRequestGestureType { 45 enum class PermissionRequestGestureType {
45 UNKNOWN, 46 UNKNOWN,
46 GESTURE, 47 GESTURE,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 bool persist() const { return persist_; } 114 bool persist() const { return persist_; }
114 115
115 private: 116 private:
116 // Whether or not the response for this prompt should be persisted. 117 // Whether or not the response for this prompt should be persisted.
117 bool persist_; 118 bool persist_;
118 119
119 DISALLOW_COPY_AND_ASSIGN(PermissionRequest); 120 DISALLOW_COPY_AND_ASSIGN(PermissionRequest);
120 }; 121 };
121 122
122 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_ 123 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/permissions/permission_manager.cc ('k') | chrome/browser/permissions/permission_request_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698