MCPcopy Create free account
hub / github.com/cztomczak/cefpython / OnDownloadUpdated

Method OnDownloadUpdated

src/client_handler/download_handler.cpp:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29void DownloadHandler::OnDownloadUpdated(
30 CefRefPtr<CefBrowser> browser,
31 CefRefPtr<CefDownloadItem> download_item,
32 CefRefPtr<CefDownloadItemCallback> callback)
33{
34 REQUIRE_UI_THREAD();
35 if (download_item->IsComplete()) {
36 std::string msg = "[Browser process] Download completed, saved to: ";
37 msg.append(download_item->GetFullPath().ToString().c_str());
38 LOG(INFO) << msg.c_str();
39 } else if (download_item->IsCanceled()) {
40 LOG(INFO) << "[Browser process] Download was cancelled";
41 }
42}

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.80
ToStringMethod · 0.80

Tested by

no test coverage detected