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

Side by Side Diff: chromecast/shell/browser/geolocation/cast_access_token_store.h

Issue 223143003: Initial checkin of chromecast content embedder (cast_shell) and related build scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Additional presubmit clean-up. Created 6 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 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 "base/macros.h"
9 #include "content/public/browser/access_token_store.h"
10
11 namespace content {
12 class BrowserContext;
13 }
14
15 namespace chromecast {
16 namespace shell {
17
18 // Access token store for chromecast devices used to initialize the network
19 // location provider.
20 class CastAccessTokenStore : public content::AccessTokenStore {
21 public:
22 explicit CastAccessTokenStore(content::BrowserContext* browser_context);
23
24 private:
25 virtual ~CastAccessTokenStore();
26
27 // AccessTokenStore implementation:
28 virtual void LoadAccessTokens(
29 const LoadAccessTokensCallbackType& callback) OVERRIDE;
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698