OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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 CHROMECAST_SHELL_BROWSER_GEOLOCATION_CAST_ACCESS_TOKEN_STORE_H_ | |
6 #define CHROMECAST_SHELL_BROWSER_GEOLOCATION_CAST_ACCESS_TOKEN_STORE_H_ | |
7 | |
8 #include "content/public/browser/access_token_store.h" | |
9 | |
10 namespace content { | |
11 class BrowserContext; | |
12 } | |
13 | |
14 namespace chromecast { | |
15 namespace shell { | |
16 | |
17 // Access token store for chromecast devices used to initialize the network | |
18 // location provider. | |
19 class CastAccessTokenStore : public content::AccessTokenStore { | |
20 public: | |
21 explicit CastAccessTokenStore(content::BrowserContext* browser_context); | |
22 | |
23 private: | |
24 virtual ~CastAccessTokenStore(); | |
25 | |
26 // AccessTokenStore | |
27 virtual void LoadAccessTokens( | |
28 const LoadAccessTokensCallbackType& callback) OVERRIDE; | |
29 | |
jam
2014/07/01 21:56:10
ditto (no blank line)
lcwu1
2014/07/02 23:30:33
Done.
| |
30 virtual void SaveAccessToken( | |
31 const GURL& server_url, const base::string16& access_token) OVERRIDE; | |
32 | |
33 void GetRequestContextGetterOnUIThread(); | |
34 void RespondOnOriginatingThread(); | |
35 | |
36 content::BrowserContext* const browser_context_; | |
37 net::URLRequestContextGetter* request_context_; | |
38 AccessTokenSet access_token_set_; | |
39 LoadAccessTokensCallbackType callback_; | |
40 | |
41 DISALLOW_COPY_AND_ASSIGN(CastAccessTokenStore); | |
42 }; | |
43 | |
44 } // namespace shell | |
45 } // namespace chromecast | |
46 | |
47 #endif // CHROMECAST_SHELL_BROWSER_GEOLOCATION_CAST_ACCESS_TOKEN_STORE_H_ | |
OLD | NEW |