Refactor management of overview window copy lifetime into a separate class.
[chromium-blink-merge.git] / content / shell / geolocation / shell_access_token_store.h
blob82ee0f888e99d698e26918208cb2ad4f89617b8d
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 namespace content {
11 class ShellBrowserContext;
13 // Dummy access token store used to initialise the network location provider.
14 class ShellAccessTokenStore : public content::AccessTokenStore {
15 public:
16 explicit ShellAccessTokenStore(
17 content::ShellBrowserContext* shell_browser_context);
19 private:
20 virtual ~ShellAccessTokenStore();
22 void GetRequestContextOnUIThread(
23 content::ShellBrowserContext* shell_browser_context);
24 void RespondOnOriginatingThread(const LoadAccessTokensCallbackType& callback);
26 // AccessTokenStore
27 virtual void LoadAccessTokens(
28 const LoadAccessTokensCallbackType& callback) OVERRIDE;
30 virtual void SaveAccessToken(
31 const GURL& server_url, const string16& access_token) OVERRIDE;
33 content::ShellBrowserContext* shell_browser_context_;
34 net::URLRequestContextGetter* system_request_context_;
36 DISALLOW_COPY_AND_ASSIGN(ShellAccessTokenStore);
39 } // namespace content
41 #endif // CONTENT_SHELL_GEOLOCATION_SHELL_ACCESS_TOKEN_STORE_H_