diff options
| author | 2019-11-09 03:09:39 -0500 | |
|---|---|---|
| committer | 2019-11-09 14:00:44 -0500 | |
| commit | 8dc9f35baf7e0338ae611a95c11b628e8edc00dd (patch) | |
| tree | 9d8795e81c2c029a475da39758fb8a36ff3dd4f9 /src/web_service/web_backend.h | |
| parent | yuzu: configure_web: Use Base64 encoded token for simplifying user experience. (diff) | |
| download | yuzu-8dc9f35baf7e0338ae611a95c11b628e8edc00dd.tar.gz yuzu-8dc9f35baf7e0338ae611a95c11b628e8edc00dd.tar.xz yuzu-8dc9f35baf7e0338ae611a95c11b628e8edc00dd.zip | |
web-service: Port citra's updated web_backend code.
Diffstat (limited to '')
| -rw-r--r-- | src/web_service/web_backend.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/web_service/web_backend.h b/src/web_service/web_backend.h index c637e09df..04121f17e 100644 --- a/src/web_service/web_backend.h +++ b/src/web_service/web_backend.h | |||
| @@ -46,6 +46,29 @@ public: | |||
| 46 | Common::WebResult DeleteJson(const std::string& path, const std::string& data, | 46 | Common::WebResult DeleteJson(const std::string& path, const std::string& data, |
| 47 | bool allow_anonymous); | 47 | bool allow_anonymous); |
| 48 | 48 | ||
| 49 | /** | ||
| 50 | * Gets a plain string from the specified path. | ||
| 51 | * @param path the URL segment after the host address. | ||
| 52 | * @param allow_anonymous If true, allow anonymous unauthenticated requests. | ||
| 53 | * @return the result of the request. | ||
| 54 | */ | ||
| 55 | Common::WebResult GetPlain(const std::string& path, bool allow_anonymous); | ||
| 56 | |||
| 57 | /** | ||
| 58 | * Gets an PNG image from the specified path. | ||
| 59 | * @param path the URL segment after the host address. | ||
| 60 | * @param allow_anonymous If true, allow anonymous unauthenticated requests. | ||
| 61 | * @return the result of the request. | ||
| 62 | */ | ||
| 63 | Common::WebResult GetImage(const std::string& path, bool allow_anonymous); | ||
| 64 | |||
| 65 | /** | ||
| 66 | * Requests an external JWT for the specific audience provided. | ||
| 67 | * @param audience the audience of the JWT requested. | ||
| 68 | * @return the result of the request. | ||
| 69 | */ | ||
| 70 | Common::WebResult GetExternalJWT(const std::string& audience); | ||
| 71 | |||
| 49 | private: | 72 | private: |
| 50 | struct Impl; | 73 | struct Impl; |
| 51 | std::unique_ptr<Impl> impl; | 74 | std::unique_ptr<Impl> impl; |