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

Unified Diff: chrome/browser/pepper_permission_util.h

Issue 15521002: Flag and whitelist to allow crxfs api in NaCl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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/pepper_permission_util.h
diff --git a/chrome/browser/pepper_permission_util.h b/chrome/browser/pepper_permission_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..6514f2ab3d11955516c49d033ba821c804afc162
--- /dev/null
+++ b/chrome/browser/pepper_permission_util.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2013 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_PEPPER_PERMISSION_UTIL_H_
+#define CHROME_BROWSER_PEPPER_PERMISSION_UTIL_H_
+
+#include <set>
+#include <string>
+
+class GURL;
+class Profile;
+
+namespace chrome {
+
+// Returns true if the extension or it's shared module is whitelisted, or
+// appears in command_line_switch.
+bool IsExtensionOrSharedModuleWhitelisted(
+ Profile* profile,
+ const GURL& url,
+ const std::set<std::string>& whitelist,
+ const char* command_line_switch);
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_PEPPER_PERMISSION_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698