Chromium Code Reviews| Index: content/shell/shell_access_token_store.h |
| diff --git a/chrome/browser/geolocation/chrome_access_token_store.h b/content/shell/shell_access_token_store.h |
| similarity index 59% |
| copy from chrome/browser/geolocation/chrome_access_token_store.h |
| copy to content/shell/shell_access_token_store.h |
| index c6f140cd231808f7d153acf6180f983910afaf05..9406c73d5f7d117ab06f1d48ec1b0084c8eb7c15 100644 |
| --- a/chrome/browser/geolocation/chrome_access_token_store.h |
| +++ b/content/shell/shell_access_token_store.h |
| @@ -6,29 +6,24 @@ |
| #define CHROME_BROWSER_GEOLOCATION_CHROME_ACCESS_TOKEN_STORE_H_ |
| #pragma once |
| -#include "base/memory/ref_counted.h" |
| #include "content/public/browser/access_token_store.h" |
| -class PrefService; |
| - |
| -// Creates a new access token store backed by the global chome prefs. |
| -class ChromeAccessTokenStore : public content::AccessTokenStore { |
| +// Creates an access token store that does not persist the tokens. |
| +class ShellAccessTokenStore : public content::AccessTokenStore { |
| public: |
| - static void RegisterPrefs(PrefService* prefs); |
| - |
| - ChromeAccessTokenStore(); |
| - |
| - virtual void LoadAccessTokens( |
| - const LoadAccessTokensCallbackType& request) OVERRIDE; |
| + ShellAccessTokenStore(net::URLRequestContextGetter* system_request_context); |
|
bulach
2012/06/25 15:28:39
nit: explicit
jochen (gone - plz use gerrit)
2012/06/25 15:36:44
The name "system request context" doesn't make sen
John Knottenbelt
2012/06/26 07:46:15
Done.
John Knottenbelt
2012/06/26 07:46:15
Done.
|
| private: |
| - virtual ~ChromeAccessTokenStore(); |
| - |
| // AccessTokenStore |
| + virtual void LoadAccessTokens( |
| + const LoadAccessTokensCallbackType& callback) OVERRIDE; |
| + |
| virtual void SaveAccessToken( |
| const GURL& server_url, const string16& access_token) OVERRIDE; |
| - DISALLOW_COPY_AND_ASSIGN(ChromeAccessTokenStore); |
| + net::URLRequestContextGetter* system_request_context_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ShellAccessTokenStore); |
| }; |
| #endif // CHROME_BROWSER_GEOLOCATION_CHROME_ACCESS_TOKEN_STORE_H_ |