| 82 | } |
| 83 | |
| 84 | void |
| 85 | API::CallMethod( |
| 86 | unsigned int target, |
| 87 | std::string method, |
| 88 | scoped_ptr<base::DictionaryValue> args, |
| 89 | const API::MethodCallback& callback) |
| 90 | { |
| 91 | if(target > 0 && bindings_[target]) { |
| 92 | LOG(INFO) << "[API] CALL: " << target << " " << method; |
| 93 | /* We route the request to the right binding. */ |
| 94 | bindings_[target]->CallLocalMethod(method, args.Pass(), callback); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | void |
| 99 | API::SetRemote( |
no test coverage detected