| Index: chrome/common/pepper_permission_util.h
|
| diff --git a/chrome/common/pepper_permission_util.h b/chrome/common/pepper_permission_util.h
|
| index 8ff9e843c328eac2f08cbe830246425a3a83873c..81e48bae6adad1fe8716b984e650b24e39952b40 100644
|
| --- a/chrome/common/pepper_permission_util.h
|
| +++ b/chrome/common/pepper_permission_util.h
|
| @@ -13,14 +13,21 @@ class GURL;
|
|
|
| namespace chrome {
|
|
|
| -// Returns true if the extension (or an imported module if any) is whitelisted,
|
| -// or appears in command_line_switch.
|
| +// Returns true if the extension (or an imported module if any) is whitelisted.
|
| bool IsExtensionOrSharedModuleWhitelisted(
|
| const GURL& url,
|
| const ExtensionSet* extension_set,
|
| - const std::set<std::string>& whitelist,
|
| - const char* command_line_switch);
|
| + const std::set<std::string>& whitelist);
|
|
|
| +// Checks whether the host of |url| is allowed by |command_line_switch|.
|
| +//
|
| +// If the value of |command_line_switch| is:
|
| +// (1) '*': returns true for any packaged or platform apps;
|
| +// (2) a list of host names separated by ',': returns true if |host| is in the
|
| +// list. (NOTE: In this case, |url| doesn't have to belong to an extension.)
|
| +bool IsHostAllowedByCommandLine(const GURL& url,
|
| + const ExtensionSet* extension_set,
|
| + const char* command_line_switch);
|
| } // namespace chrome
|
|
|
| #endif // CHROME_COMMON_PEPPER_PERMISSION_UTIL_H_
|
|
|