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

Side by Side Diff: content/shell/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: Make DidLoadAccessTokens static. 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 unified diff | Download patch
« no previous file with comments | « content/shell/shell_access_token_store.h ('k') | content/shell/shell_content_browser_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
joth 2012/06/26 15:37:09 the file name is rather ambiguous, probably need t
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/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 void ShellAccessTokenStore::LoadAccessTokens(
17 const LoadAccessTokensCallbackType& callback) {
18 MessageLoop::current()->PostTask(
19 FROM_HERE,
20 base::Bind(&ShellAccessTokenStore::DidLoadAccessTokens,
21 request_context_, callback));
22 }
23
24 void ShellAccessTokenStore::DidLoadAccessTokens(
25 net::URLRequestContextGetter* request_context,
26 const LoadAccessTokensCallbackType& callback) {
27 // Since content_shell is a test executable, rather than an end user program,
28 // we provide a dummy access_token set to avoid hitting the server.
29 AccessTokenSet access_token_set;
30 access_token_set[GURL()] = ASCIIToUTF16("chromium_content_shell");
31 callback.Run(access_token_set, request_context);
32 }
33
34 void ShellAccessTokenStore::SaveAccessToken(
35 const GURL& server_url, const string16& access_token) {
36 }
OLDNEW
« no previous file with comments | « content/shell/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