MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / PushData

Method PushData

cpp/iedriver/HookProcessor.cpp:257–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257bool HookProcessor::PushData(int data_size,
258 void* pointer_to_data) {
259 LOG(TRACE) << "Entering HookProcessor::PushData";
260 if (this->hook_procedure_handle_ == NULL) {
261 LOG(WARN) << "No hook procedure has been set";
262 return false;
263 }
264 CopyDataHolderWindow holder;
265 holder.Create(/*HWND*/ HWND_MESSAGE,
266 /*_U_RECT rect*/ CWindow::rcDefault,
267 /*LPCTSTR szWindowName*/ NULL,
268 /*DWORD dwStyle*/ NULL,
269 /*DWORD dwExStyle*/ NULL,
270 /*_U_MENUorID MenuOrID*/ 0U,
271 /*LPVOID lpCreateParam*/ NULL);
272 LRESULT result = holder.CopyData(this->window_handle_,
273 data_size,
274 pointer_to_data);
275 holder.DestroyWindow();
276 return true;
277}
278
279bool HookProcessor::PushData(const std::wstring& data) {
280 std::wstring mutable_data = data;

Callers 3

SetCookieMethod · 0.80
SendGetCookieMessageMethod · 0.80

Calls 4

CopyDataMethod · 0.80
LOGClass · 0.50
CreateMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected