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

Side by Side Diff: content/shell/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: 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
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 #ifndef CONTENT_SHELL_SHELL_ACCESS_TOKEN_STORE_H_
6 #define CONTENT_SHELL_SHELL_ACCESS_TOKEN_STORE_H_
7 #pragma once
8
9 #include "content/public/browser/access_token_store.h"
10
11 // Dummy access token store used to initialise the network location provider.
12 class ShellAccessTokenStore : public content::AccessTokenStore {
13 public:
14 explicit ShellAccessTokenStore(net::URLRequestContextGetter* request_context);
15
16 private:
17 // AccessTokenStore
18 virtual void LoadAccessTokens(
19 const LoadAccessTokensCallbackType& callback) OVERRIDE;
20
21 virtual void SaveAccessToken(
22 const GURL& server_url, const string16& access_token) OVERRIDE;
23
24 static void DidLoadAccessTokens(
25 net::URLRequestContextGetter* request_context,
26 const LoadAccessTokensCallbackType& callback);
27
28 net::URLRequestContextGetter* request_context_;
29
30 DISALLOW_COPY_AND_ASSIGN(ShellAccessTokenStore);
31 };
32
33 #endif // CONTENT_SHELL_SHELL_ACCESS_TOKEN_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698