| 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, | |
| 13 | |
| 14 BROWSER_PLUGIN_PERMISSION_TYPE_POINTER_LOCK, | 12 BROWSER_PLUGIN_PERMISSION_TYPE_POINTER_LOCK, |
| 15 | 13 |
| 16 // New window requests. | 14 // New window requests. |
| 17 // Note: Even though new windows don't use the permission API, the new window | 15 // Note: Even though new windows don't use the permission API, the new window |
| 18 // API is sufficiently similar that it's convenient to consider it a | 16 // API is sufficiently similar that it's convenient to consider it a |
| 19 // permission type for code reuse. | 17 // permission type for code reuse. |
| 20 BROWSER_PLUGIN_PERMISSION_TYPE_NEW_WINDOW, | 18 BROWSER_PLUGIN_PERMISSION_TYPE_NEW_WINDOW, |
| 21 | 19 |
| 22 // JavaScript Dialogs: prompt, alert, confirm | 20 // JavaScript Dialogs: prompt, alert, confirm |
| 23 // Note: Even through dialogs do not use the permission API, the dialog API | 21 // Note: Even through dialogs do not use the permission API, the dialog API |
| 24 // is sufficiently similiar that it's convenient to consider it a permission | 22 // is sufficiently similiar that it's convenient to consider it a permission |
| 25 // type for code reuse. | 23 // type for code reuse. |
| 26 BROWSER_PLUGIN_PERMISSION_TYPE_JAVASCRIPT_DIALOG, | 24 BROWSER_PLUGIN_PERMISSION_TYPE_JAVASCRIPT_DIALOG, |
| 27 | 25 |
| 28 BROWSER_PLUGIN_PERMISSION_TYPE_CONTENT_END, | 26 BROWSER_PLUGIN_PERMISSION_TYPE_CONTENT_END, |
| 29 }; | 27 }; |
| 30 | 28 |
| 31 #endif // CONTENT_COMMON_BROWSER_PLUGIN_PERMISSION_TYPE_H_ | 29 #endif // CONTENT_COMMON_BROWSER_PLUGIN_PERMISSION_TYPE_H_ |
| OLD | NEW |