Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_GEOLOCATION_CHROME_ACCESS_TOKEN_STORE_H_ | 5 #ifndef CHROME_BROWSER_GEOLOCATION_CHROME_ACCESS_TOKEN_STORE_H_ |
|
jochen (gone - plz use gerrit)
2012/06/25 15:36:44
update plz
John Knottenbelt
2012/06/26 07:46:15
Done.
| |
| 6 #define CHROME_BROWSER_GEOLOCATION_CHROME_ACCESS_TOKEN_STORE_H_ | 6 #define CHROME_BROWSER_GEOLOCATION_CHROME_ACCESS_TOKEN_STORE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/ref_counted.h" | |
| 10 #include "content/public/browser/access_token_store.h" | 9 #include "content/public/browser/access_token_store.h" |
| 11 | 10 |
| 12 class PrefService; | 11 // Creates an access token store that does not persist the tokens. |
| 13 | 12 class ShellAccessTokenStore : public content::AccessTokenStore { |
| 14 // Creates a new access token store backed by the global chome prefs. | |
| 15 class ChromeAccessTokenStore : public content::AccessTokenStore { | |
| 16 public: | 13 public: |
| 17 static void RegisterPrefs(PrefService* prefs); | 14 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.
| |
| 18 | |
| 19 ChromeAccessTokenStore(); | |
| 20 | |
| 21 virtual void LoadAccessTokens( | |
| 22 const LoadAccessTokensCallbackType& request) OVERRIDE; | |
| 23 | 15 |
| 24 private: | 16 private: |
| 25 virtual ~ChromeAccessTokenStore(); | 17 // AccessTokenStore |
| 18 virtual void LoadAccessTokens( | |
| 19 const LoadAccessTokensCallbackType& callback) OVERRIDE; | |
| 26 | 20 |
| 27 // AccessTokenStore | |
| 28 virtual void SaveAccessToken( | 21 virtual void SaveAccessToken( |
| 29 const GURL& server_url, const string16& access_token) OVERRIDE; | 22 const GURL& server_url, const string16& access_token) OVERRIDE; |
| 30 | 23 |
| 31 DISALLOW_COPY_AND_ASSIGN(ChromeAccessTokenStore); | 24 net::URLRequestContextGetter* system_request_context_; |
| 25 | |
| 26 DISALLOW_COPY_AND_ASSIGN(ShellAccessTokenStore); | |
| 32 }; | 27 }; |
| 33 | 28 |
| 34 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_ACCESS_TOKEN_STORE_H_ | 29 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_ACCESS_TOKEN_STORE_H_ |
| OLD | NEW |