[NaCl SDK]: use standard __BEGIN_DECLS macros in sys/select.h
[chromium-blink-merge.git] / content / shell / geolocation / shell_access_token_store.h
blobe97ce3680e75f60c2a12f3ff69d906b2b7225085
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 "base/memory/ref_counted.h"
9 #include "content/public/browser/access_token_store.h"
10 #include "net/url_request/url_request_context_getter.h"
12 namespace content {
13 class ShellBrowserContext;
15 // Dummy access token store used to initialise the network location provider.
16 class ShellAccessTokenStore : public content::AccessTokenStore {
17 public:
18 explicit ShellAccessTokenStore(
19 content::ShellBrowserContext* shell_browser_context);
21 private:
22 virtual ~ShellAccessTokenStore();
24 void GetRequestContextOnUIThread(
25 content::ShellBrowserContext* shell_browser_context);
26 void RespondOnOriginatingThread(const LoadAccessTokensCallbackType& callback);
28 // AccessTokenStore
29 virtual void LoadAccessTokens(
30 const LoadAccessTokensCallbackType& callback) OVERRIDE;
32 virtual void SaveAccessToken(
33 const GURL& server_url, const base::string16& access_token) OVERRIDE;
35 content::ShellBrowserContext* shell_browser_context_;
36 scoped_refptr<net::URLRequestContextGetter> system_request_context_;
38 DISALLOW_COPY_AND_ASSIGN(ShellAccessTokenStore);
41 } // namespace content
43 #endif // CONTENT_SHELL_GEOLOCATION_SHELL_ACCESS_TOKEN_STORE_H_