diff options
Diffstat (limited to 'chromium/content/shell/geolocation/shell_access_token_store.cc')
-rw-r--r-- | chromium/content/shell/geolocation/shell_access_token_store.cc | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/chromium/content/shell/geolocation/shell_access_token_store.cc b/chromium/content/shell/geolocation/shell_access_token_store.cc deleted file mode 100644 index 4b8b0074e92..00000000000 --- a/chromium/content/shell/geolocation/shell_access_token_store.cc +++ /dev/null @@ -1,55 +0,0 @@ -// 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/message_loop.h" -#include "base/strings/utf_string_conversions.h" -#include "content/public/browser/browser_thread.h" -#include "content/shell/browser/shell_browser_context.h" - -namespace content { - -ShellAccessTokenStore::ShellAccessTokenStore( - content::ShellBrowserContext* shell_browser_context) - : shell_browser_context_(shell_browser_context), - system_request_context_(NULL) { -} - -ShellAccessTokenStore::~ShellAccessTokenStore() { -} - -void ShellAccessTokenStore::LoadAccessTokens( - const LoadAccessTokensCallbackType& callback) { - BrowserThread::PostTaskAndReply( - BrowserThread::UI, - FROM_HERE, - base::Bind(&ShellAccessTokenStore::GetRequestContextOnUIThread, - this, - shell_browser_context_), - base::Bind(&ShellAccessTokenStore::RespondOnOriginatingThread, - this, - callback)); -} - -void ShellAccessTokenStore::GetRequestContextOnUIThread( - content::ShellBrowserContext* shell_browser_context) { - system_request_context_ = shell_browser_context->GetRequestContext(); -} - -void ShellAccessTokenStore::RespondOnOriginatingThread( - 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, system_request_context_); -} - -void ShellAccessTokenStore::SaveAccessToken( - const GURL& server_url, const base::string16& access_token) { -} - -} // namespace content |