Index: chrome/browser/pepper_util.h |
diff --git a/chrome/browser/pepper_util.h b/chrome/browser/pepper_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d617571af431529282005d1e2e5fa7893e80cb7e |
--- /dev/null |
+++ b/chrome/browser/pepper_util.h |
@@ -0,0 +1,25 @@ |
+// 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_UTIL_H_ |
yzshen1
2013/05/22 18:14:23
nit: maybe a more specific name such as pepper_per
victorhsieh
2013/05/22 19:47:33
Sometimes I saw this kind of util file ends up wit
yzshen1
2013/05/22 20:12:47
I think it is better to have a more specific name
victorhsieh
2013/05/22 20:52:22
Done.
|
+#define CHROME_BROWSER_PEPPER_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, |
+ std::set<std::string> whitelist, |
yzshen1
2013/05/22 18:14:23
const &, please.
victorhsieh
2013/05/22 19:47:33
Done.
|
+ const char command_line_switch[]); |
yzshen1
2013/05/22 18:14:23
It seems better to use const char*.
victorhsieh
2013/05/22 19:47:33
Done.
|
+ |
+} // namespace chrome |
+ |
+#endif // CHROME_BROWSER_PEPPER_UTIL_H_ |