| 358 | |
| 359 | |
| 360 | void |
| 361 | APIServer::StartHandlerThread() |
| 362 | { |
| 363 | /* Runs on FILE thread. */ |
| 364 | base::Thread::Options options; |
| 365 | options.message_loop_type = base::MessageLoop::TYPE_IO; |
| 366 | if (!thread_->StartWithOptions(options)) { |
| 367 | BrowserThread::PostTask( |
| 368 | BrowserThread::UI, FROM_HERE, |
| 369 | base::Bind(&APIServer::ResetHandlerThread, this)); |
| 370 | return; |
| 371 | } |
| 372 | |
| 373 | thread_->message_loop()->PostTask( |
| 374 | FROM_HERE, |
| 375 | base::Bind(&APIServer::ThreadRun, this)); |
| 376 | } |
| 377 | |
| 378 | void |
| 379 | APIServer::ResetHandlerThread() |
nothing calls this directly
no outgoing calls
no test coverage detected