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

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

Issue 10984094: Hook up PpapiPermissions in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/pepper_permissions_config.h
diff --git a/content/public/common/pepper_permissions_config.h b/content/public/common/pepper_permissions_config.h
new file mode 100644
index 0000000000000000000000000000000000000000..ba632f68af647ae0205ab8eb3da7f4aa1b8fb966
--- /dev/null
+++ b/content/public/common/pepper_permissions_config.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2012 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 CONTENT_PUBLIC_COMMON_PEPPER_PERMISSIONS_CONFIG_H_
+#define CONTENT_PUBLIC_COMMON_PEPPER_PERMISSIONS_CONFIG_H_
+
+#include "base/compiler_specific.h"
+#include "content/common/content_export.h"
+#include "ppapi/shared_impl/ppapi_permissions.h"
+
+namespace content {
+
+struct PepperPluginInfo;
+
+// Adds additional permissions specified by command line parameters to the
+// given input permissions, returning the result.
+CONTENT_EXPORT ppapi::PpapiPermissions AddPepperPermissionsFromCommandLine(
+ const ppapi::PpapiPermissions& original_perms) WARN_UNUSED_RESULT;
+
+// Returns the Pepper plugin permissions for the given plugin info. This takes
+// into account additional permissions based on command line arguments
+CONTENT_EXPORT ppapi::PpapiPermissions CreatePepperPermissionsForPlugin(
+ const PepperPluginInfo& info) WARN_UNUSED_RESULT;
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_PEPPER_PERMISSIONS_CONFIG_H_

Powered by Google App Engine
This is Rietveld 408576698