2014-10-31 11:17:05 -07:00
|
|
|
// Copyright (c) 2014 GitHub, Inc.
|
2014-08-13 12:12:43 +08:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef ATOM_BROWSER_ATOM_ACCESS_TOKEN_STORE_H_
|
|
|
|
#define ATOM_BROWSER_ATOM_ACCESS_TOKEN_STORE_H_
|
|
|
|
|
2016-11-09 07:50:03 +00:00
|
|
|
#include "device/geolocation/access_token_store.h"
|
2014-08-13 12:12:43 +08:00
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
2016-10-15 01:00:54 +05:30
|
|
|
namespace internal {
|
2017-03-14 21:08:10 +05:30
|
|
|
class GeoURLRequestContextGetter;
|
2016-10-15 01:00:54 +05:30
|
|
|
}
|
|
|
|
|
2016-11-09 07:50:03 +00:00
|
|
|
class AtomAccessTokenStore : public device::AccessTokenStore {
|
2014-08-13 12:12:43 +08:00
|
|
|
public:
|
|
|
|
AtomAccessTokenStore();
|
2016-06-22 15:41:56 +09:00
|
|
|
~AtomAccessTokenStore();
|
2014-08-13 12:12:43 +08:00
|
|
|
|
2016-11-09 07:50:03 +00:00
|
|
|
// device::AccessTokenStore:
|
2015-01-09 17:24:36 -08:00
|
|
|
void LoadAccessTokens(
|
2016-04-27 13:59:46 -04:00
|
|
|
const LoadAccessTokensCallback& callback) override;
|
2015-01-09 17:24:36 -08:00
|
|
|
void SaveAccessToken(const GURL& server_url,
|
|
|
|
const base::string16& access_token) override;
|
2014-08-13 12:12:43 +08:00
|
|
|
|
|
|
|
private:
|
2017-03-14 21:08:10 +05:30
|
|
|
scoped_refptr<internal::GeoURLRequestContextGetter> request_context_getter_;
|
2014-08-13 12:12:43 +08:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(AtomAccessTokenStore);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace atom
|
|
|
|
|
2014-08-13 13:28:05 +08:00
|
|
|
#endif // ATOM_BROWSER_ATOM_ACCESS_TOKEN_STORE_H_
|