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

Side by Side 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, 5 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #include "content/shell/geolocation/shell_access_token_store.h"
6
7 #include "base/bind.h"
8 #include "base/message_loop.h"
9 #include "base/utf_string_conversions.h"
10
11 ShellAccessTokenStore::ShellAccessTokenStore(
12 net::URLRequestContextGetter* request_context)
13 : request_context_(request_context) {
14 }
15
16 ShellAccessTokenStore::~ShellAccessTokenStore() {
17 }
18
19 void ShellAccessTokenStore::LoadAccessTokens(
20 const LoadAccessTokensCallbackType& callback) {
21 MessageLoop::current()->PostTask(
22 FROM_HERE,
23 base::Bind(&ShellAccessTokenStore::DidLoadAccessTokens,
24 request_context_, callback));
25 }
26
27 void ShellAccessTokenStore::DidLoadAccessTokens(
28 net::URLRequestContextGetter* request_context,
29 const LoadAccessTokensCallbackType& callback) {
30 // Since content_shell is a test executable, rather than an end user program,
31 // we provide a dummy access_token set to avoid hitting the server.
32 AccessTokenSet access_token_set;
33 access_token_set[GURL()] = ASCIIToUTF16("chromium_content_shell");
34 callback.Run(access_token_set, request_context);
35 }
36
37 void ShellAccessTokenStore::SaveAccessToken(
38 const GURL& server_url, const string16& access_token) {
39 }
OLDNEW
« 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