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

Unified Diff: content/public/common/browser_plugin_permission_type.h

Issue 21297005: <webview>: Refactor Permission API to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup_permissions
Patch Set: Merge with ToT Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/browser_plugin_permission_type.h
diff --git a/content/common/browser_plugin/browser_plugin_message_enums.h b/content/public/common/browser_plugin_permission_type.h
similarity index 57%
rename from content/common/browser_plugin/browser_plugin_message_enums.h
rename to content/public/common/browser_plugin_permission_type.h
index b0503a7d3c483c36649ff92ebb84786576214292..8df6c3fe4194b87664f586fccc6ab69f7ffce234 100644
--- a/content/common/browser_plugin/browser_plugin_message_enums.h
+++ b/content/public/common/browser_plugin_permission_type.h
@@ -2,37 +2,33 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_COMMON_BROWSER_PLUGIN_BROWSER_PLUGIN_MESSAGE_ENUMS_H_
-#define CONTENT_COMMON_BROWSER_PLUGIN_BROWSER_PLUGIN_MESSAGE_ENUMS_H_
+#ifndef CONTENT_COMMON_BROWSER_PLUGIN_PERMISSION_TYPE_H_
+#define CONTENT_COMMON_BROWSER_PLUGIN_PERMISSION_TYPE_H_
enum BrowserPluginPermissionType {
// Unknown type of permission request.
- BrowserPluginPermissionTypeUnknown,
+ BROWSER_PLUGIN_PERMISSION_TYPE_UNKNOWN,
- // Download.
- BrowserPluginPermissionTypeDownload,
+ BROWSER_PLUGIN_PERMISSION_TYPE_DOWNLOAD,
- // Geolocation.
- BrowserPluginPermissionTypeGeolocation,
+ BROWSER_PLUGIN_PERMISSION_TYPE_GEOLOCATION,
// Media access (audio/video) permission request type.
- BrowserPluginPermissionTypeMedia,
-
- // PointerLock
- BrowserPluginPermissionTypePointerLock,
+ BROWSER_PLUGIN_PERMISSION_TYPE_MEDIA,
+ BROWSER_PLUGIN_PERMISSION_TYPE_POINTER_LOCK,
// New window requests.
// Note: Even though new windows don't use the permission API, the new window
// API is sufficiently similar that it's convenient to consider it a
// permission type for code reuse.
- BrowserPluginPermissionTypeNewWindow,
+ BROWSER_PLUGIN_PERMISSION_TYPE_NEW_WINDOW,
// JavaScript Dialogs: prompt, alert, confirm
// Note: Even through dialogs do not use the permission API, the dialog API
// is sufficiently similiar that it's convenient to consider it a permission
// type for code reuse.
- BrowserPluginPermissionTypeJavaScriptDialog
+ BROWSER_PLUGIN_PERMISSION_TYPE_JAVASCRIPT_DIALOG
};
-#endif // CONTENT_COMMON_BROWSER_PLUGIN_BROWSER_PLUGIN_MESSAGE_ENUMS_H_
+#endif // CONTENT_COMMON_BROWSER_PLUGIN_PERMISSION_TYPE_H_
« no previous file with comments | « content/public/browser/browser_plugin_guest_delegate.cc ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698