aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/googledrive/googledrivestorage.h
diff options
context:
space:
mode:
authorAlexander Tkachev2019-07-15 22:14:23 +0700
committerMatan Bareket2019-07-30 14:51:41 -0400
commit60504dce7539863a207610fd636236c7035ade3e (patch)
treedc4eee3a5740f206e08edb2d93fa6df0eefe4ed2 /backends/cloud/googledrive/googledrivestorage.h
parent4a427faf9cc817cfce8e293c22cc470339b6e3c7 (diff)
downloadscummvm-rg350-60504dce7539863a207610fd636236c7035ade3e.tar.gz
scummvm-rg350-60504dce7539863a207610fd636236c7035ade3e.tar.bz2
scummvm-rg350-60504dce7539863a207610fd636236c7035ade3e.zip
CLOUD: Update storages to refresh token via cloud.scummvm.org
Diffstat (limited to 'backends/cloud/googledrive/googledrivestorage.h')
-rw-r--r--backends/cloud/googledrive/googledrivestorage.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/backends/cloud/googledrive/googledrivestorage.h b/backends/cloud/googledrive/googledrivestorage.h
index 30bc9ab3f5..730e8e20c3 100644
--- a/backends/cloud/googledrive/googledrivestorage.h
+++ b/backends/cloud/googledrive/googledrivestorage.h
@@ -33,8 +33,6 @@ class GoogleDriveStorage: public Id::IdStorage {
/** This private constructor is called from loadFromConfig(). */
GoogleDriveStorage(Common::String token, Common::String refreshToken);
- void tokenRefreshed(BoolCallback callback, Networking::JsonResponse response);
-
/** Constructs StorageInfo based on JSON response from cloud. */
void infoInnerCallback(StorageInfoCallback outerCallback, Networking::JsonResponse json);
@@ -54,6 +52,8 @@ protected:
*/
virtual uint32 storageIndex();
+ virtual bool needsRefreshToken();
+
public:
/** This constructor uses OAuth code flow to get tokens. */
GoogleDriveStorage(Common::String code);
@@ -106,12 +106,6 @@ public:
virtual Common::String getRootDirectoryId();
- /**
- * Gets new access_token. Pass a callback, so you could
- * continue your work when new token is available.
- */
- void refreshAccessToken(BoolCallback callback, Networking::ErrorCallback errorCallback = nullptr);
-
Common::String accessToken() const { return _token; }
};