| Index: chrome/renderer/extensions/custom_bindings_util.h
|
| diff --git a/chrome/renderer/extensions/custom_bindings_util.h b/chrome/renderer/extensions/custom_bindings_util.h
|
| index 8b0b4290bf8d97c7671bf0b464b7000f2e707697..075a3000a8cc26531f80c8465208f1dc524edcb1 100644
|
| --- a/chrome/renderer/extensions/custom_bindings_util.h
|
| +++ b/chrome/renderer/extensions/custom_bindings_util.h
|
| @@ -10,6 +10,7 @@
|
| #include <vector>
|
|
|
| #include "chrome/renderer/extensions/chrome_v8_extension.h"
|
| +#include "chrome/renderer/extensions/chrome_v8_context.h"
|
|
|
| class Extension;
|
| class ExtensionDispatcher;
|
| @@ -33,10 +34,12 @@ std::vector<v8::Extension*> GetAll(ExtensionDispatcher* extension_dispatcher);
|
| std::string GetAPIName(const std::string& v8_extension_name);
|
|
|
| // Returns whether the custom binding for an API should be allowed to run for
|
| -// |extension|. This is based on whether the extension has any permission
|
| -// (required or optional) for that API.
|
| +// |extension|. This is based on whether the extension has any permission
|
| +// (required or optional) for that API, and what context the APIs are intended
|
| +// to run in.
|
| bool AllowAPIInjection(const std::string& api_name,
|
| - const Extension& extension);
|
| + const Extension& extension,
|
| + ChromeV8Context::ContextType context_type);
|
|
|
| } // namespace custom_bindings_util
|
|
|
|
|