1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_GEOLOCATION_CHROME_ACCESS_TOKEN_STORE_H_
6#define CHROME_BROWSER_GEOLOCATION_CHROME_ACCESS_TOKEN_STORE_H_
7
8#include "base/memory/ref_counted.h"
9#include "content/public/browser/access_token_store.h"
10
11class PrefRegistrySimple;
12
13// Creates a new access token store backed by the global chome prefs.
14class ChromeAccessTokenStore : public content::AccessTokenStore {
15 public:
16  static void RegisterPrefs(PrefRegistrySimple* registry);
17
18  ChromeAccessTokenStore();
19
20  virtual void LoadAccessTokens(
21      const LoadAccessTokensCallbackType& request) OVERRIDE;
22
23 private:
24  virtual ~ChromeAccessTokenStore();
25
26  // AccessTokenStore
27  virtual void SaveAccessToken(
28      const GURL& server_url, const base::string16& access_token) OVERRIDE;
29
30  DISALLOW_COPY_AND_ASSIGN(ChromeAccessTokenStore);
31};
32
33#endif  // CHROME_BROWSER_GEOLOCATION_CHROME_ACCESS_TOKEN_STORE_H_
34