Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1413)

Unified Diff: content/shell/geolocation/shell_access_token_store.h

Issue 10669009: Add ShellAccessTokenStore to content_shell (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove OVERRIDE from destructor. Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/geolocation/shell_access_token_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/geolocation/shell_access_token_store.h
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 0000000000000000000000000000000000000000..083540fcf38733c6caa67ad988db35e4f5a7fcf8
--- /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_
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/geolocation/shell_access_token_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698