summaryrefslogtreecommitdiffstats
path: root/content/shell/geolocation/shell_access_token_store.h
diff options
context:
space:
mode:
authorjknotten@chromium.org <jknotten@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-28 12:14:05 +0000
committerjknotten@chromium.org <jknotten@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-28 12:14:05 +0000
commit6cfccd12651f37b2e91c54e16caaac10eb442840 (patch)
treed036108c6cd94075048a3eace95a68aeec0cee1c /content/shell/geolocation/shell_access_token_store.h
parent3db59050895db1f36314b71893872f0b3bde82c3 (diff)
downloadchromium_src-6cfccd12651f37b2e91c54e16caaac10eb442840.zip
chromium_src-6cfccd12651f37b2e91c54e16caaac10eb442840.tar.gz
chromium_src-6cfccd12651f37b2e91c54e16caaac10eb442840.tar.bz2
Add ShellAccessTokenStore to content_shell
Geolocation on content_shell requires an implementation of AccessTokenStore in order to work. BUG=134116 TEST=None Review URL: https://chromiumcodereview.appspot.com/10669009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144705 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/geolocation/shell_access_token_store.h')
-rw-r--r--content/shell/geolocation/shell_access_token_store.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/content/shell/geolocation/shell_access_token_store.h b/content/shell/geolocation/shell_access_token_store.h
new file mode 100644
index 0000000..083540f
--- /dev/null
+++ b/content/shell/geolocation/shell_access_token_store.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_SHELL_GEOLOCATION_SHELL_ACCESS_TOKEN_STORE_H_
+#define CONTENT_SHELL_GEOLOCATION_SHELL_ACCESS_TOKEN_STORE_H_
+#pragma once
+
+#include "content/public/browser/access_token_store.h"
+
+// Dummy access token store used to initialise the network location provider.
+class ShellAccessTokenStore : public content::AccessTokenStore {
+ public:
+ explicit ShellAccessTokenStore(net::URLRequestContextGetter* request_context);
+
+ private:
+ virtual ~ShellAccessTokenStore();
+
+ // AccessTokenStore
+ virtual void LoadAccessTokens(
+ const LoadAccessTokensCallbackType& callback) OVERRIDE;
+
+ virtual void SaveAccessToken(
+ const GURL& server_url, const string16& access_token) OVERRIDE;
+
+ static void DidLoadAccessTokens(
+ net::URLRequestContextGetter* request_context,
+ const LoadAccessTokensCallbackType& callback);
+
+ net::URLRequestContextGetter* request_context_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShellAccessTokenStore);
+};
+
+#endif // CONTENT_SHELL_GEOLOCATION_SHELL_ACCESS_TOKEN_STORE_H_