OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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 #pragma once |
| 8 |
| 9 #include "base/memory/ref_counted.h" |
| 10 #include "content/browser/geolocation/access_token_store.h" |
| 11 |
| 12 class PrefService; |
| 13 |
| 14 // Creates a new access token store backed by the global chome prefs. |
| 15 class ChromeAccessTokenStore : public AccessTokenStore { |
| 16 public: |
| 17 static void RegisterPrefs(PrefService* prefs); |
| 18 |
| 19 ChromeAccessTokenStore(); |
| 20 |
| 21 private: |
| 22 void LoadDictionaryStoreInUIThread( |
| 23 scoped_refptr<CancelableRequest<LoadAccessTokensCallbackType> > request); |
| 24 |
| 25 // AccessTokenStore |
| 26 virtual void DoLoadAccessTokens( |
| 27 scoped_refptr<CancelableRequest<LoadAccessTokensCallbackType> > request); |
| 28 virtual void SaveAccessToken( |
| 29 const GURL& server_url, const string16& access_token); |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(ChromeAccessTokenStore); |
| 32 }; |
| 33 |
| 34 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_ACCESS_TOKEN_STORE_H_ |
OLD | NEW |