| 480 | } |
| 481 | |
| 482 | int Browser::NavigateBack() { |
| 483 | LOG(TRACE) << "Entering Browser::NavigateBack"; |
| 484 | LPSTREAM stream; |
| 485 | HRESULT hr = ::CoMarshalInterThreadInterfaceInStream(IID_IWebBrowser2, this->browser_, &stream); |
| 486 | unsigned int thread_id = 0; |
| 487 | HANDLE thread_handle = reinterpret_cast<HANDLE>(_beginthreadex(NULL, |
| 488 | 0, |
| 489 | &Browser::GoBackThreadProc, |
| 490 | (void *)stream, |
| 491 | 0, |
| 492 | &thread_id)); |
| 493 | if (thread_handle != NULL) { |
| 494 | ::CloseHandle(thread_handle); |
| 495 | } |
| 496 | |
| 497 | this->set_wait_required(true); |
| 498 | return WD_SUCCESS; |
| 499 | } |
| 500 | |
| 501 | unsigned int WINAPI Browser::GoBackThreadProc(LPVOID param) { |
| 502 | HRESULT hr = ::CoInitialize(NULL); |
no test coverage detected