atom_access_token_store.h 934 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (c) 2014 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ATOM_BROWSER_ATOM_ACCESS_TOKEN_STORE_H_
  5. #define ATOM_BROWSER_ATOM_ACCESS_TOKEN_STORE_H_
  6. #include "device/geolocation/access_token_store.h"
  7. namespace atom {
  8. namespace internal {
  9. class GeoURLRequestContextGetter;
  10. }
  11. class AtomAccessTokenStore : public device::AccessTokenStore {
  12. public:
  13. AtomAccessTokenStore();
  14. ~AtomAccessTokenStore();
  15. // device::AccessTokenStore:
  16. void LoadAccessTokens(
  17. const LoadAccessTokensCallback& callback) override;
  18. void SaveAccessToken(const GURL& server_url,
  19. const base::string16& access_token) override;
  20. private:
  21. scoped_refptr<internal::GeoURLRequestContextGetter> request_context_getter_;
  22. DISALLOW_COPY_AND_ASSIGN(AtomAccessTokenStore);
  23. };
  24. } // namespace atom
  25. #endif // ATOM_BROWSER_ATOM_ACCESS_TOKEN_STORE_H_