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.
5 #ifndef CONTENT_SHELL_GEOLOCATION_SHELL_ACCESS_TOKEN_STORE_H_
6 #define CONTENT_SHELL_GEOLOCATION_SHELL_ACCESS_TOKEN_STORE_H_
8 #include "content/public/browser/access_token_store.h"
10 // Dummy access token store used to initialise the network location provider.
11 class ShellAccessTokenStore
: public content::AccessTokenStore
{
13 explicit ShellAccessTokenStore(net::URLRequestContextGetter
* request_context
);
16 virtual ~ShellAccessTokenStore();
19 virtual void LoadAccessTokens(
20 const LoadAccessTokensCallbackType
& callback
) OVERRIDE
;
22 virtual void SaveAccessToken(
23 const GURL
& server_url
, const string16
& access_token
) OVERRIDE
;
25 static void DidLoadAccessTokens(
26 net::URLRequestContextGetter
* request_context
,
27 const LoadAccessTokensCallbackType
& callback
);
29 net::URLRequestContextGetter
* request_context_
;
31 DISALLOW_COPY_AND_ASSIGN(ShellAccessTokenStore
);
34 #endif // CONTENT_SHELL_GEOLOCATION_SHELL_ACCESS_TOKEN_STORE_H_