summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/applets/web_browser.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-11-12 18:23:46 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-12-18 16:33:27 +0100
commit89df4835673a2c6b1905459b2aff866a6caeec4a (patch)
treee8f904ccdec94005cad6641771f79c788a55b35b /src/core/hle/service/am/applets/web_browser.h
parentapplets/web: Initial implementation of the web browser applet (diff)
downloadyuzu-89df4835673a2c6b1905459b2aff866a6caeec4a.tar
yuzu-89df4835673a2c6b1905459b2aff866a6caeec4a.tar.gz
yuzu-89df4835673a2c6b1905459b2aff866a6caeec4a.tar.bz2
yuzu-89df4835673a2c6b1905459b2aff866a6caeec4a.tar.lz
yuzu-89df4835673a2c6b1905459b2aff866a6caeec4a.tar.xz
yuzu-89df4835673a2c6b1905459b2aff866a6caeec4a.tar.zst
yuzu-89df4835673a2c6b1905459b2aff866a6caeec4a.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/am/applets/web_browser.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/service/am/applets/web_browser.h b/src/core/hle/service/am/applets/web_browser.h
index a1ed5fd1d..c36c717f1 100644
--- a/src/core/hle/service/am/applets/web_browser.h
+++ b/src/core/hle/service/am/applets/web_browser.h
@@ -4,6 +4,8 @@
#pragma once
+#include <optional>
+
#include "common/common_funcs.h"
#include "common/common_types.h"
#include "core/hle/result.h"
@@ -32,6 +34,10 @@ public:
void WebBrowserExit(WebExitReason exit_reason, std::string last_url = "");
private:
+ bool InputTLVExistsInMap(WebArgInputTLVType input_tlv_type) const;
+
+ std::optional<std::vector<u8>> GetInputTLVData(WebArgInputTLVType input_tlv_type);
+
// Initializers for the various types of browser applets
void InitializeShop();
void InitializeLogin();
@@ -56,9 +62,13 @@ private:
ResultCode status{RESULT_SUCCESS};
WebAppletVersion web_applet_version;
+ WebExitReason web_exit_reason;
WebArgHeader web_arg_header;
WebArgInputTLVMap web_arg_input_tlv_map;
+ std::string offline_cache_dir;
+ std::string offline_document;
+
Core::System& system;
};