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

Unified Diff: chrome/browser/guest_view/web_view/web_view_permission_types.h

Issue 505893002: Revert of Move core web_view code to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: chrome/browser/guest_view/web_view/web_view_permission_types.h
diff --git a/chrome/browser/guest_view/web_view/web_view_permission_types.h b/chrome/browser/guest_view/web_view/web_view_permission_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..22d8cf6a9a402d036e477ae4e1aa3a5395b2d3c7
--- /dev/null
+++ b/chrome/browser/guest_view/web_view/web_view_permission_types.h
@@ -0,0 +1,38 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_TYPES_H_
+#define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_TYPES_H_
+
+enum WebViewPermissionType {
+ // Unknown type of permission request.
+ WEB_VIEW_PERMISSION_TYPE_UNKNOWN,
+
+ WEB_VIEW_PERMISSION_TYPE_DOWNLOAD,
+
+ WEB_VIEW_PERMISSION_TYPE_FILESYSTEM,
+
+ WEB_VIEW_PERMISSION_TYPE_GEOLOCATION,
+
+ // 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.
+ WEB_VIEW_PERMISSION_TYPE_JAVASCRIPT_DIALOG,
+
+ WEB_VIEW_PERMISSION_TYPE_LOAD_PLUGIN,
+
+ // Media access (audio/video) permission request type.
+ WEB_VIEW_PERMISSION_TYPE_MEDIA,
+
+ // 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.
+ WEB_VIEW_PERMISSION_TYPE_NEW_WINDOW,
+
+ WEB_VIEW_PERMISSION_TYPE_POINTER_LOCK
+};
+
+#endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698