Skip to content
API Documentation
BastionGuard™
SecureBrowser.hpp
Go to the documentation of this file.
1/*
2 * BastionGuard™
3 * Copyright (C) 2025–2026 Calogero Scarnà
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 *
17 * BastionGuard™ is a trademark of Calogero Scarnà.
18 * The BastionGuard™ name and branding are not licensed under the GPL.
19 */
20#pragma once
21#include <string>
22#include <cstdint>
23#include "include/cef_app.h"
24
26public:
27 // Apre url nella sandbox CEF con lock di istanza (uso normale: bankopener/secure)
28 static bool open(const std::string& url, int argc, char** argv);
29 static void open(const std::string& url) {
30 open(url, 0, nullptr);
31 }
32 static void openInWindow(const std::string& url, uintptr_t window_id) {
33 open(url, 0, nullptr);
34 }
35
36 // Apre url in una finestra CEF leggera SENZA lock di istanza.
37 // Usato da bastionguard_cef per la pagina di notifica "Apertura sicura in corso"
38 // (http://127.0.0.1:3131/...) in parallelo alla sandbox bankopener/secure.
39 static void open_notify(const std::string& url, int argc, char** argv);
40 static void open_notify(const std::string& url) {
41 open_notify(url, 0, nullptr);
42 }
43
44 static CefRefPtr<CefApp> createApp();
45};
static void open_notify(const std::string &url)
static void openInWindow(const std::string &url, uintptr_t window_id)
static void open_notify(const std::string &url, int argc, char **argv)
static void open(const std::string &url)
static bool open(const std::string &url, int argc, char **argv)
static CefRefPtr< CefApp > createApp()