| Index: extensions/renderer/object_backed_native_handler.h
|
| diff --git a/extensions/renderer/object_backed_native_handler.h b/extensions/renderer/object_backed_native_handler.h
|
| index e3b63119b15aa4226f7735b667c6253933d74fee..8e804c3af459bd15c092d0c52797dd8bf78323b9 100644
|
| --- a/extensions/renderer/object_backed_native_handler.h
|
| +++ b/extensions/renderer/object_backed_native_handler.h
|
| @@ -43,6 +43,11 @@ class ObjectBackedNativeHandler : public NativeHandler {
|
| // Routed functions are destroyed along with the destruction of this class,
|
| // and are never called back into, therefore it's safe for |handler_function|
|
| // to bind to base::Unretained.
|
| + //
|
| + // |feature_name| corresponds to the api feature the native handler is used
|
| + // for. If the associated ScriptContext does not have access to that feature,
|
| + // the |handler_function| is not invoked.
|
| + // TODO(devlin): Deprecate the version that doesn't take a |feature_name|.
|
| void RouteFunction(const std::string& name,
|
| const HandlerFunction& handler_function);
|
| void RouteFunction(const std::string& name,
|
|
|