| 512 | } |
| 513 | |
| 514 | int Browser::NavigateForward() { |
| 515 | LOG(TRACE) << "Entering Browser::NavigateForward"; |
| 516 | LPSTREAM stream; |
| 517 | HRESULT hr = ::CoMarshalInterThreadInterfaceInStream(IID_IWebBrowser2, this->browser_, &stream); |
| 518 | unsigned int thread_id = 0; |
| 519 | HANDLE thread_handle = reinterpret_cast<HANDLE>(_beginthreadex(NULL, |
| 520 | 0, |
| 521 | &Browser::GoForwardThreadProc, |
| 522 | (void *)stream, |
| 523 | 0, |
| 524 | &thread_id)); |
| 525 | if (thread_handle != NULL) { |
| 526 | ::CloseHandle(thread_handle); |
| 527 | } |
| 528 | |
| 529 | this->set_wait_required(true); |
| 530 | return WD_SUCCESS; |
| 531 | } |
| 532 | |
| 533 | unsigned int WINAPI Browser::GoForwardThreadProc(LPVOID param) { |
| 534 | HRESULT hr = ::CoInitialize(NULL); |
no test coverage detected