| 36 | } |
| 37 | |
| 38 | void |
| 39 | APIServer::Client::Remote::InvokeMethod( |
| 40 | const std::string method, |
| 41 | scoped_ptr<base::DictionaryValue> args, |
| 42 | const API::MethodCallback& callback) |
| 43 | { |
| 44 | /* Runs on UI Thread. */ |
| 45 | LOG(INFO) << "Remote::Client::InvokeMethod [" << target_ << "] " << this; |
| 46 | |
| 47 | content::BrowserThread::PostTask( |
| 48 | content::BrowserThread::IO, FROM_HERE, |
| 49 | base::Bind(&APIServer::Client::SendInvoke, client_, |
| 50 | callback, target_, method, base::Passed(args.Pass()))); |
| 51 | } |
| 52 | |
| 53 | void APIServer::Client::Remote::EmitEvent( |
| 54 | const std::string type, |