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

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

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/shell/geolocation/shell_access_token_store.h ('k') | content/shell/shell_content_browser_client.h » ('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.cc
diff --git a/content/shell/geolocation/shell_access_token_store.cc b/content/shell/geolocation/shell_access_token_store.cc
new file mode 100644
index 0000000000000000000000000000000000000000..587057c89ec9986cfd95df8b6d18352cffff5551
--- /dev/null
+++ b/content/shell/geolocation/shell_access_token_store.cc
@@ -0,0 +1,39 @@
+// 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.
+
+#include "content/shell/geolocation/shell_access_token_store.h"
+
+#include "base/bind.h"
+#include "base/message_loop.h"
+#include "base/utf_string_conversions.h"
+
+ShellAccessTokenStore::ShellAccessTokenStore(
+ net::URLRequestContextGetter* request_context)
+ : request_context_(request_context) {
+}
+
+ShellAccessTokenStore::~ShellAccessTokenStore() {
+}
+
+void ShellAccessTokenStore::LoadAccessTokens(
+ const LoadAccessTokensCallbackType& callback) {
+ MessageLoop::current()->PostTask(
+ FROM_HERE,
+ base::Bind(&ShellAccessTokenStore::DidLoadAccessTokens,
+ request_context_, callback));
+}
+
+void ShellAccessTokenStore::DidLoadAccessTokens(
+ net::URLRequestContextGetter* request_context,
+ const LoadAccessTokensCallbackType& callback) {
+ // Since content_shell is a test executable, rather than an end user program,
+ // we provide a dummy access_token set to avoid hitting the server.
+ AccessTokenSet access_token_set;
+ access_token_set[GURL()] = ASCIIToUTF16("chromium_content_shell");
+ callback.Run(access_token_set, request_context);
+}
+
+void ShellAccessTokenStore::SaveAccessToken(
+ const GURL& server_url, const string16& access_token) {
+}
« no previous file with comments | « content/shell/geolocation/shell_access_token_store.h ('k') | content/shell/shell_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698