| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_COMMON_BROWSER_PLUGIN_PERMISSION_TYPE_H_ | 5 #ifndef CONTENT_COMMON_BROWSER_PLUGIN_PERMISSION_TYPE_H_ |
| 6 #define CONTENT_COMMON_BROWSER_PLUGIN_PERMISSION_TYPE_H_ | 6 #define CONTENT_COMMON_BROWSER_PLUGIN_PERMISSION_TYPE_H_ |
| 7 | 7 |
| 8 enum BrowserPluginPermissionType { | 8 enum BrowserPluginPermissionType { |
| 9 // Unknown type of permission request. | 9 // Unknown type of permission request. |
| 10 BROWSER_PLUGIN_PERMISSION_TYPE_UNKNOWN, | 10 BROWSER_PLUGIN_PERMISSION_TYPE_UNKNOWN, |
| 11 | 11 |
| 12 BROWSER_PLUGIN_PERMISSION_TYPE_DOWNLOAD, | 12 BROWSER_PLUGIN_PERMISSION_TYPE_DOWNLOAD, |
| 13 | |
| 14 BROWSER_PLUGIN_PERMISSION_TYPE_GEOLOCATION, | |
| 15 | |
| 16 // Media access (audio/video) permission request type. | 13 // Media access (audio/video) permission request type. |
| 17 BROWSER_PLUGIN_PERMISSION_TYPE_MEDIA, | 14 BROWSER_PLUGIN_PERMISSION_TYPE_MEDIA, |
| 18 | 15 |
| 19 BROWSER_PLUGIN_PERMISSION_TYPE_POINTER_LOCK, | 16 BROWSER_PLUGIN_PERMISSION_TYPE_POINTER_LOCK, |
| 20 | 17 |
| 21 // New window requests. | 18 // New window requests. |
| 22 // Note: Even though new windows don't use the permission API, the new window | 19 // Note: Even though new windows don't use the permission API, the new window |
| 23 // API is sufficiently similar that it's convenient to consider it a | 20 // API is sufficiently similar that it's convenient to consider it a |
| 24 // permission type for code reuse. | 21 // permission type for code reuse. |
| 25 BROWSER_PLUGIN_PERMISSION_TYPE_NEW_WINDOW, | 22 BROWSER_PLUGIN_PERMISSION_TYPE_NEW_WINDOW, |
| 26 | 23 |
| 27 // JavaScript Dialogs: prompt, alert, confirm | 24 // JavaScript Dialogs: prompt, alert, confirm |
| 28 // Note: Even through dialogs do not use the permission API, the dialog API | 25 // Note: Even through dialogs do not use the permission API, the dialog API |
| 29 // is sufficiently similiar that it's convenient to consider it a permission | 26 // is sufficiently similiar that it's convenient to consider it a permission |
| 30 // type for code reuse. | 27 // type for code reuse. |
| 31 BROWSER_PLUGIN_PERMISSION_TYPE_JAVASCRIPT_DIALOG, | 28 BROWSER_PLUGIN_PERMISSION_TYPE_JAVASCRIPT_DIALOG, |
| 32 | 29 |
| 33 BROWSER_PLUGIN_PERMISSION_TYPE_CONTENT_END, | 30 BROWSER_PLUGIN_PERMISSION_TYPE_CONTENT_END, |
| 34 }; | 31 }; |
| 35 | 32 |
| 36 #endif // CONTENT_COMMON_BROWSER_PLUGIN_PERMISSION_TYPE_H_ | 33 #endif // CONTENT_COMMON_BROWSER_PLUGIN_PERMISSION_TYPE_H_ |
| OLD | NEW |