cefclient: Simplify ClientPrintHandlerGtk for single browser usage (see issue #2196)

This commit is contained in:
Marshall Greenblatt
2021-03-30 09:49:17 -07:00
parent 7876a2f321
commit 19ac738b77
2 changed files with 12 additions and 39 deletions

View File

@@ -7,7 +7,7 @@
#define CEF_TESTS_CEFCLIENT_BROWSER_PRINT_HANDLER_GTK_H_
#pragma once
#include <map>
#include <memory>
#include "include/cef_print_handler.h"
@@ -37,11 +37,7 @@ class ClientPrintHandlerGtk : public CefPrintHandler {
private:
// Print handler.
struct PrintHandler;
PrintHandler* GetPrintHandler(CefRefPtr<CefBrowser> browser);
// Map of browser ID to print handler.
typedef std::map<int, PrintHandler*> PrintHandlerMap;
PrintHandlerMap print_handler_map_;
std::unique_ptr<PrintHandler> print_handler_;
IMPLEMENT_REFCOUNTING(ClientPrintHandlerGtk);
DISALLOW_COPY_AND_ASSIGN(ClientPrintHandlerGtk);